aboutsummaryrefslogtreecommitdiffstats
path: root/main/transmission/transmission-daemon.initd
blob: af9461cc60c41c040cb098f11d1af394fc8dd531 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/sbin/runscript

depend() {
        need net
}

start() {
        ebegin "Starting transmission-daemon"
                start-stop-daemon --start --quiet --background --make-pidfile \
                --chuid transmission:transmission \
                --pidfile /var/run/transmission-daemon.pid \
                --exec /usr/bin/transmission-daemon -- ${TD_OPTS}
        eend $?
}

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