#!/sbin/runscript # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-misc/uptimed/files/uptimed.init,v 1.3 2009/04/14 17:13:13 armin76 Exp $ # Copyright 2002 Sean Russell PIDFILE="/var/run/uptimed/uptimed.pid" start() { ebegin "Starting uptimed" start-stop-daemon --quiet --start --chuid uptimed \ --exec /usr/sbin/uptimed --pidfile "${PIDFILE}" -- -b start-stop-daemon --quiet --start --chuid uptimed \ --exec /usr/sbin/uptimed --pidfile "${PIDFILE}" \ -- -p ${PIDFILE} eend $? } stop() { ebegin "Stopping uptimed" start-stop-daemon --quiet --stop --user uptimed --pidfile "${PIDFILE}" eend $? }