diff options
author | Colin Smith <colin@pfsense.org> | 2005-12-22 10:01:21 +0000 |
---|---|---|
committer | Colin Smith <colin@pfsense.org> | 2005-12-22 10:01:21 +0000 |
commit | c6291280661a5ff1db006cdae8b56394656c8efc (patch) | |
tree | 79bf8aedbf64f83cead35db62f35129784ddb7d5 /packages | |
parent | bcf9d0dce7be76ec2ec0670dc8f335621b2a5bb2 (diff) | |
download | pfsense-packages-c6291280661a5ff1db006cdae8b56394656c8efc.tar.gz pfsense-packages-c6291280661a5ff1db006cdae8b56394656c8efc.tar.bz2 pfsense-packages-c6291280661a5ff1db006cdae8b56394656c8efc.zip |
Fix upclient package.
XXX: A `pkg_add -rv gettext` is currently required to run this package.
Diffstat (limited to 'packages')
-rw-r--r-- | packages/upclient.xml | 14 |
1 files 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 @@ +<?xml version="1.0" encoding="utf-8" ?> <packagegui> <name>upclient</name> <title>upclient: Settings</title> @@ -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, <<<EOD + $static = <<<EOD SendIdle = 1 # Send CPU idle percent SendUsage = 1 # Send CPU load percent SendOSName = 1 # Send name of your Operating System SendOSVersion = 1 # Send version of your OS SendCPU = 1 # Send CPU name of your machine -SendCPUDetail = 1 # (BSD, Linux & Solaris only) +SendCPUDetail = 1 # (BSD, Linux & Solaris only) SendLoadAvg = 1 # Send 15-minute Load-average (unix only) -EOD;); + +EOD; + fwrite($fout, $static); fclose($fout); } $start = "/usr/local/sbin/upclient &"; write_rcfile(array( "file" => "upclient.sh", - "start" => $start, + "start" => $start ) ); restart_service("upclient"); |