Lines Matching full:daemon
3 # Provides: transmission-daemon
8 # Short-Description: Start the transmission BitTorrent daemon client.
39 #TRANSMISSION_HOME="/var/config/transmission-daemon"
42 # The arguments passed on to transmission-daemon.
53 NAME=transmission-daemon
54 DAEMON=$(which $NAME)
59 [ -x "$DAEMON" ] || exit 0
68 # Function that starts the daemon/service
82 # 0 if daemon has been started
83 # 1 if daemon was already running
84 # 2 if daemon could not be started
85 start-stop-daemon --chuid $USERNAME --start --pidfile $PIDFILE --make-pidfile \
86 --exec $DAEMON --background --test -- -f $TRANSMISSION_ARGS > /dev/null \
88 start-stop-daemon --chuid $USERNAME --start --pidfile $PIDFILE --make-pidfile \
89 --exec $DAEMON --background -- -f $TRANSMISSION_ARGS \
94 # Function that stops the daemon/service
99 # 0 if daemon has been stopped
100 # 1 if daemon was already stopped
101 # 2 if daemon could not be stopped
103 start-stop-daemon --stop --quiet --retry=TERM/10/KILL/5 --pidfile $PIDFILE --exec $DAEMON
107 # Wait for children to finish too if this is a daemon that forks
108 # and if the daemon is only ever run from this initscript.
114 start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --exec $DAEMON