#!/sbin/runscript # Copyright 2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ command=/usr/sbin/${SVCNAME} piddir=/run/${SVCNAME} pidfile=${piddir}/${SVCNAME}.pid depend() { after clock } start() { ebegin "Starting ${SVCNAME}" checkpath -q -d -m 755 -o uuidd:uuidd ${piddir} start-stop-daemon \ --start --user uuidd --exec ${command} \ -- --pid ${pidfile} eend $? } stop() { ebegin "Stopping ${SVCNAME}" start-stop-daemon \ --stop --pidfile ${pidfile} --name uuidd eend $? } # vim:ft=gentoo-init-d: