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

depend() {
        need net
	after firewall
}

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 $?
}