]> Pileus Git - ~andy/sunrise/blobdiff - app-admin/istatd/files/istatd-init
app-admin/istatd: New ebuild for bug 326965.
[~andy/sunrise] / app-admin / istatd / files / istatd-init
diff --git a/app-admin/istatd/files/istatd-init b/app-admin/istatd/files/istatd-init
new file mode 100644 (file)
index 0000000..1d3e79c
--- /dev/null
@@ -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 $?
+}