diff options
Diffstat (limited to 'app-admin/istatd/files/istatd-init')
-rw-r--r-- | app-admin/istatd/files/istatd-init | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/app-admin/istatd/files/istatd-init b/app-admin/istatd/files/istatd-init new file mode 100644 index 0000000..1d3e79c --- /dev/null +++ b/app-admin/istatd/files/istatd-init @@ -0,0 +1,26 @@ +#!/sbin/runscript +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +PID=/var/run/istatd/istat.pid + +start() { + ebegin "Starting istatd" + start-stop-daemon --start \ + --exec /usr/bin/istatd \ + --make-pidfile \ + --chuid istatd:istatd \ + --pidfile ${PID} \ + --background \ + -- "${ISTATD_OPTS}" \ + >> /var/log/istatd 2>&1 + eend $? +} + +stop() { + ebegin "Stopping istatd" + start-stop-daemon --stop \ + --pidfile ${PID} + eend $? +} |