diff options
author | Colin Smith <colin@pfsense.org> | 2005-03-21 04:41:08 +0000 |
---|---|---|
committer | Colin Smith <colin@pfsense.org> | 2005-03-21 04:41:08 +0000 |
commit | edd16b8cf9fd396c03b0add6632986a98eca03f7 (patch) | |
tree | 1ca54192008de4832b9c4d0da988fb50fd1956b2 /packages/spamd.xml | |
parent | c34fb5342a439e59323e34185727f182e52801e2 (diff) | |
download | pfsense-packages-edd16b8cf9fd396c03b0add6632986a98eca03f7.tar.gz pfsense-packages-edd16b8cf9fd396c03b0add6632986a98eca03f7.tar.bz2 pfsense-packages-edd16b8cf9fd396c03b0add6632986a98eca03f7.zip |
Use chmod() instead of system() (or equivalent) for all package startup scripts.
Diffstat (limited to 'packages/spamd.xml')
-rw-r--r-- | packages/spamd.xml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/spamd.xml b/packages/spamd.xml index f34502e7..7fc2bf17 100644 --- a/packages/spamd.xml +++ b/packages/spamd.xml @@ -149,8 +149,8 @@ fwrite($fd, "/usr/local/sbin/spamd-setup &\n"); fwrite($fd, "/usr/local/libexec/spamlogd &\n"); fclose($fd); - system("chmod a+x /usr/local/etc/rc.d/spamd 2>/dev/null"); - system("/usr/local/etc/rc.d/spamd 2>/dev/null"); + chmod("/usr/local/etc/rc.d/spamd", 0755); + mwexec("/usr/local/etc/rc.d/spamd"); </custom_php_install_command> <custom_php_deinstall_command> unlink_if_exists("/usr/local/pkg/spamd*"); |