blob: 4f0acd24f0eb2e71463110d1b529c416a5a812d6 (
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 \
--user 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 $?
}
|