diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-02-26 20:29:09 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-02-26 20:29:09 +0000 |
commit | d7713e4a07e31c4841191488de22078ff9231240 (patch) | |
tree | 9e3e69ee182f41b9e3e8a48e800d53b73ce542f9 | |
parent | 13ea4075bc37d301d545f12a0e5bdd21674646c8 (diff) | |
download | pfsense-packages-d7713e4a07e31c4841191488de22078ff9231240.tar.gz pfsense-packages-d7713e4a07e31c4841191488de22078ff9231240.tar.bz2 pfsense-packages-d7713e4a07e31c4841191488de22078ff9231240.zip |
Correctly start package
-rw-r--r-- | packages/spamd.xml | 4 | ||||
-rw-r--r-- | packages/spamd_whitelist.xml | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/packages/spamd.xml b/packages/spamd.xml index 78096548..aa29c88c 100644 --- a/packages/spamd.xml +++ b/packages/spamd.xml @@ -128,6 +128,7 @@ fwrite($fd, $spamd['ip'] . "\n"); } fclose($fd); + system("/usr/local/etc/rc.d/spamd 2>/dev/null"); conf_mount_ro(); config_unlock(); } @@ -144,7 +145,8 @@ system("/usr/libexec/spamlogd 2>/dev/null &"); $fd = fopen("/usr/local/etc/rc.d/spamd","w"); fwrite($fd, "#!/bin/sh\n\n"); - fwrite($fd, "/usr/libexec/spamd-setup &\n"); + fwrite($fd, "/usr/bin/killall spamd-setup 2>/dev/null\n"); + fwrite($fd, "/usr/local/sbin/spamd-setup &\n"); fwrite($fd, "/usr/libexec/spamlogd &\n"); fclose($fd); system("chmod a+x /usr/local/etc/rc.d/spamd 2>/dev/null"); diff --git a/packages/spamd_whitelist.xml b/packages/spamd_whitelist.xml index 7fd25352..aacb3aa8 100644 --- a/packages/spamd_whitelist.xml +++ b/packages/spamd_whitelist.xml @@ -61,6 +61,7 @@ fwrite($fd, $spamd['ip'] . "\n"); } fclose($fd); + system("/usr/local/etc/rc.d/spamd 2>/dev/null"); conf_mount_ro(); config_unlock(); } |