aboutsummaryrefslogtreecommitdiffstats
path: root/config/servicewatchdog
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@world.inf.org>2014-02-03 03:18:26 -0800
committerPhil Davis <phil.davis@world.inf.org>2014-02-03 03:18:26 -0800
commit326dd1c3cd02f94909751fe9287a4fe38130641f (patch)
tree78a550587296b0ddf90464709069535f17481551 /config/servicewatchdog
parentea86a80b3f2c347b7a4f2ccc60e45a1006d8998e (diff)
downloadpfsense-packages-326dd1c3cd02f94909751fe9287a4fe38130641f.tar.gz
pfsense-packages-326dd1c3cd02f94909751fe9287a4fe38130641f.tar.bz2
pfsense-packages-326dd1c3cd02f94909751fe9287a4fe38130641f.zip
Add and remove service watchdog cron job
when the package is installed and removed.
Diffstat (limited to 'config/servicewatchdog')
-rw-r--r--config/servicewatchdog/servicewatchdog.xml8
1 files changed, 7 insertions, 1 deletions
diff --git a/config/servicewatchdog/servicewatchdog.xml b/config/servicewatchdog/servicewatchdog.xml
index 5e1ce309..c20f0a4e 100644
--- a/config/servicewatchdog/servicewatchdog.xml
+++ b/config/servicewatchdog/servicewatchdog.xml
@@ -69,4 +69,10 @@
<chmod>644</chmod>
<item>http://www.pfsense.com/packages/config/servicewatchdog/servicewatchdog.inc</item>
</additional_files_needed>
-</packagegui> \ No newline at end of file
+ <custom_php_install_command>
+ servicewatchdog_cron_job();
+ </custom_php_install_command>
+ <custom_php_deinstall_command>
+ servicewatchdog_cron_job(true);
+ </custom_php_deinstall_command>
+</packagegui>