From c6291280661a5ff1db006cdae8b56394656c8efc Mon Sep 17 00:00:00 2001 From: Colin Smith Date: Thu, 22 Dec 2005 10:01:21 +0000 Subject: Fix upclient package. XXX: A `pkg_add -rv gettext` is currently required to run this package. --- packages/upclient.xml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/packages/upclient.xml b/packages/upclient.xml index 4ccabf39..3200f3fc 100644 --- a/packages/upclient.xml +++ b/packages/upclient.xml @@ -1,3 +1,4 @@ + upclient upclient: Settings @@ -43,26 +44,29 @@ config_lock(); $upclient_conf = $config['installedpackages']['upclient']['config'][0]; $fout = fopen("/usr/local/etc/upclient.conf", "w"); - if($upclient_conf['authkey'] && $upclient_conf['server']) { + if($upclient_conf['authkey'] and $upclient_conf['server']) { + fwrite($fout, "PidFile = /var/run/upclient.pid # Location of pid file\n"); fwrite($fout, "AuthKey = {$upclient_conf['authkey']}\n"); $interval = $upclient_conf['interval'] ? $upclient_conf['interval'] : "550"; fwrite($fout, "Interval = {$interval}\n"); fwrite($fout, "UptimeServer = {$upclient_conf['server']}\n"); - fwrite($fout, << "upclient.sh", - "start" => $start, + "start" => $start ) ); restart_service("upclient"); -- cgit v1.2.3