aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-02-26 20:29:09 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-02-26 20:29:09 +0000
commitd7713e4a07e31c4841191488de22078ff9231240 (patch)
tree9e3e69ee182f41b9e3e8a48e800d53b73ce542f9
parent13ea4075bc37d301d545f12a0e5bdd21674646c8 (diff)
downloadpfsense-packages-d7713e4a07e31c4841191488de22078ff9231240.tar.gz
pfsense-packages-d7713e4a07e31c4841191488de22078ff9231240.tar.bz2
pfsense-packages-d7713e4a07e31c4841191488de22078ff9231240.zip
Correctly start package
-rw-r--r--packages/spamd.xml4
-rw-r--r--packages/spamd_whitelist.xml1
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 &amp;");
$fd = fopen("/usr/local/etc/rc.d/spamd","w");
fwrite($fd, "#!/bin/sh\n\n");
- fwrite($fd, "/usr/libexec/spamd-setup &amp;\n");
+ fwrite($fd, "/usr/bin/killall spamd-setup 2>/dev/null\n");
+ fwrite($fd, "/usr/local/sbin/spamd-setup &amp;\n");
fwrite($fd, "/usr/libexec/spamlogd &amp;\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();
}