diff options
author | Michael Hanson <hansonorders@verizon.net> | 2010-12-03 03:22:02 (GMT) |
---|---|---|
committer | Michael Hanson <hansonorders@verizon.net> | 2010-12-03 03:22:02 (GMT) |
commit | 23e92a9bcefb4b5f7a0b84920986830dafeaf0c2 (patch) | |
tree | 04924433c8622ad5bd04c9c085f1f42ef297a7a6 /abs/extra/monitorix/monitorix.rc.d | |
parent | eda157f81c5147ed610263fecece005d92ea3f1a (diff) | |
download | linhes_pkgbuild-23e92a9bcefb4b5f7a0b84920986830dafeaf0c2.zip linhes_pkgbuild-23e92a9bcefb4b5f7a0b84920986830dafeaf0c2.tar.gz linhes_pkgbuild-23e92a9bcefb4b5f7a0b84920986830dafeaf0c2.tar.bz2 |
monitorix: upgrade
Diffstat (limited to 'abs/extra/monitorix/monitorix.rc.d')
-rw-r--r-- | abs/extra/monitorix/monitorix.rc.d | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/abs/extra/monitorix/monitorix.rc.d b/abs/extra/monitorix/monitorix.rc.d index 9649519..24eb433 100644 --- a/abs/extra/monitorix/monitorix.rc.d +++ b/abs/extra/monitorix/monitorix.rc.d @@ -10,15 +10,16 @@ case $1 in start) stat_busy "Starting Monitorix" if ck_daemon monitorix; then - if [ -x /etc/cron.hourly/sync-monitorix.sh ]; then + # check for monitorix-tmps and if present execute it + if [ -x /etc/cron.hourly/sync-monitorix.sh ]; then /etc/cron.hourly/sync-monitorix.sh >/dev/null 2>&1 fi # Creates RRDs files if needed /usr/sbin/monitorix.pl create >/dev/null 2>&1 || stat_die $? /usr/sbin/monitorix.pl init >/dev/null 2>&1 || stat_die $? add_daemon monitorix - # restart crond so data gets collected - /sbin/sv restart cron + # restart crond so data gets collected + /etc/rc.d/crond restart stat_done else stat_fail @@ -28,13 +29,14 @@ case $1 in stop) stat_busy "Stopping Monitorix" if ! ck_daemon monitorix; then + # check for monitorix-tmps and if present execute it if [ -x /etc/cron.hourly/sync-monitorix.sh ]; then /etc/cron.hourly/sync-monitorix.sh >/dev/null 2>&1 fi /usr/sbin/monitorix.pl stop 2>&1 || stat_die $? rm_daemon monitorix # restart crond data stops getting collected - /sbin/sv restart cron + /etc/rc.d/crond restart stat_done else stat_fail |