diff options
-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> |