diff options
author | James Meyer <jams@linhes.org> | 2010-12-04 23:48:49 (GMT) |
---|---|---|
committer | James Meyer <jams@linhes.org> | 2010-12-04 23:48:49 (GMT) |
commit | 037ab1a6a2fee07c83b47dc4d4ffd629b9052e85 (patch) | |
tree | a4256da38a768da362aad34ad9a8bcc7da611c30 /abs/extra/monitorix/monitorix.rc.d | |
parent | 0b251e4b5f6d56e5aba84aaf780fbf4e6a289245 (diff) | |
parent | 2ddfcdc1360af607e5925afe0e0f3562ad538738 (diff) | |
download | linhes_pkgbuild-037ab1a6a2fee07c83b47dc4d4ffd629b9052e85.zip linhes_pkgbuild-037ab1a6a2fee07c83b47dc4d4ffd629b9052e85.tar.gz linhes_pkgbuild-037ab1a6a2fee07c83b47dc4d4ffd629b9052e85.tar.bz2 |
Merge branch 'testing' of ssh://linhes.org/mount/repository/linhes_pkgbuild into testing
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 |