Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

give munin-sched it's own start/stop/restart scripts.

  • Loading branch information...
commit 204385639084ca927c62591033252aba3661505a 1 parent 1166357
Matthew Boyle authored
View
4 dev_scripts/restart_munin-sched
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+./dev_scripts/stop_munin-sched
+./dev_scripts/start_munin-sched "$@"
View
8 dev_scripts/start_munin-node
@@ -6,17 +6,11 @@ FINDBIN=$(cd -- "$(dirname "$0")" && pwd)
cd $BASEDIR
-
if [ -f $DESTDIR/var/run/munin/munin-node.pid ]; then
echo "Pid file found. Not starting"
else
env PERL5LIB=$DESTDIR/$PERLSITELIB $DESTDIR/opt/munin/sbin/munin-node "$@"
fi
-if [ -f $DESTDIR/var/run/munin/munin-sched.pid ]; then
- echo "Pid file found. Not starting"
-else
- env PERL5LIB=$DESTDIR/$PERLSITELIB $DESTDIR/opt/munin/sbin/munin-sched "$@"
-fi
+tail -f $DESTDIR/opt/munin/log/munin/munin-node.log
-tail -f $DESTDIR/opt/munin/log/munin/munin-{node,sched}.log
View
15 dev_scripts/start_munin-sched
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+FINDBIN=$(cd -- "$(dirname "$0")" && pwd)
+. $FINDBIN/common.sh
+
+cd $BASEDIR
+
+
+if [ -f $DESTDIR/var/run/munin/munin-sched.pid ]; then
+ echo "Pid file found. Not starting"
+else
+ env PERL5LIB=$DESTDIR/$PERLSITELIB $DESTDIR/opt/munin/sbin/munin-sched "$@"
+fi
+
+tail -f $DESTDIR/opt/munin/log/munin/munin-sched.log
View
5 dev_scripts/stop_munin-node
@@ -12,8 +12,3 @@ else
echo "Pid file not found. Not stopping"
fi
-if [ -f $DESTDIR/var/run/munin/munin-sched.pid ]; then
- cat $DESTDIR/var/run/munin/munin-sched.pid | xargs kill
-else
- echo "Pid file not found. Not stopping"
-fi
View
13 dev_scripts/stop_munin-sched
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+FINDBIN=$(cd -- "$(dirname "$0")" && pwd)
+. $FINDBIN/common.sh
+
+cd $BASEDIR
+
+
+if [ -f $DESTDIR/var/run/munin/munin-sched.pid ]; then
+ cat $DESTDIR/var/run/munin/munin-sched.pid | xargs kill
+else
+ echo "Pid file not found. Not stopping"
+fi
Please sign in to comment.
Something went wrong with that request. Please try again.