#!/sbin/runscript # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-misc/g15composer/files/g15composer-2.1.initd,v 1.1 2006/10/24 07:41:11 jokey Exp $ PIDFILE=/var/run/${SVCNAME}.pid depend() { need g15daemon } start() { ebegin "Starting ${SVCNAME}" mknod -m660 "${CONTROL_FIFO}" p chown ${FIFO_USER} "${CONTROL_FIFO}" chgrp ${FIFO_GROUP} "${CONTROL_FIFO}" start-stop-daemon --start --background --pidfile ${PIDFILE} --make-pidfile --exec \ /usr/bin/g15composer -- -b -u "${FIFO_USER}" "${CONTROL_FIFO}" eend $? } stop() { ebegin "Stoping ${SVCNAME}" start-stop-daemon --stop --pidfile ${PIDFILE} --name g15composer rm "${CONTROL_FIFO}" eend $? }