summaryrefslogtreecommitdiff
blob: 99301d0188b0c8b072137079f702d573bf117670 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/sbin/runscript
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License, v2 or later
# $Id$

start() {
   ebegin "Starting Bitten slave"
   start-stop-daemon --start --user ${BITTEN_USER:-bitten} --group ${BITTEN_GROUP:-tracd} \
      --pidfile /var/run/bitten.pid --make-pidfile --background \
      --exec /usr/bin/bitten-slave -- \
      ${BITTEN_SERVER} -d ${BITTEN_TMPDIR:-/var/tmp/bitten} -l ${BITTEN_LOG:-/var/log/bitten.log} \
      ${BITTEN_OPTS}
   eend $?
}

stop() {
   ebegin "Stopping Bitten slave"
   start-stop-daemon --stop --quiet --pidfile /var/run/bitten.pid
   eend $?
}