summaryrefslogtreecommitdiffstats
path: root/x11/transmission/transmission-daemon.initd
diff options
context:
space:
mode:
Diffstat (limited to 'x11/transmission/transmission-daemon.initd')
-rw-r--r--x11/transmission/transmission-daemon.initd21
1 files changed, 21 insertions, 0 deletions
diff --git a/x11/transmission/transmission-daemon.initd b/x11/transmission/transmission-daemon.initd
new file mode 100644
index 00000000..af9461cc
--- /dev/null
+++ b/x11/transmission/transmission-daemon.initd
@@ -0,0 +1,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 $?
+}