blob: 18de641c8dca5fefd39b2618d30c6a082c6641f3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#!/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 $?
}
|