diff options
author | Colin Smith <colin@pfsense.org> | 2005-04-04 03:27:34 +0000 |
---|---|---|
committer | Colin Smith <colin@pfsense.org> | 2005-04-04 03:27:34 +0000 |
commit | 5621ddeea8e209cdf64a64d7ab2d22c87bdaab4b (patch) | |
tree | d5e8872bdf020a0287440af0b36919bd0f3f6482 /packages | |
parent | 30e44eb842364a231f546dcb631da02c814e6f1a (diff) | |
download | pfsense-packages-5621ddeea8e209cdf64a64d7ab2d22c87bdaab4b.tar.gz pfsense-packages-5621ddeea8e209cdf64a64d7ab2d22c87bdaab4b.tar.bz2 pfsense-packages-5621ddeea8e209cdf64a64d7ab2d22c87bdaab4b.zip |
Fix arpwatch to properly start on boot, among other things.
Diffstat (limited to 'packages')
-rw-r--r-- | packages/arpwatch.xml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/arpwatch.xml b/packages/arpwatch.xml index 7b55751d..88ee877f 100644 --- a/packages/arpwatch.xml +++ b/packages/arpwatch.xml @@ -31,8 +31,9 @@ fwrite($fout, "# This file was automatically generated by the pfSense\n# package management system.\n\n"); if(isset($config['installedpackages']['arpwatch']['config'][0]['interface'])) { $int = convert_friendly_interface_to_real_interface_name($config['installedpackages']['arpwatch']['config']['0']['interface']); - fwrite($fout, "/usr/local/sbin/arpwatch -i " . $int . "\n\n"); + fwrite($fout, "/usr/local/sbin/arpwatch -d -i " . $int . " &\n\n"); } + chmod("/usr/local/etc/rc.d/arpwatch.sh", 0755); fclose($fout); conf_mount_ro(); config_unlock(); @@ -40,7 +41,7 @@ </custom_php_global_functions> <custom_add_php_command> sync_package_arpwatch(); - mwexec("/usr/bin/killall arpwatch"); + mwexec("/usr/bin/killall -HUP arpwatch"); mwexec("/usr/local/etc/rc.d/arpwatch.sh"); </custom_add_php_command> </packagegui> |