summaryrefslogtreecommitdiff
path: root/net-libs/tox/files/initd
diff options
context:
space:
mode:
authorV3n3RiX <venerix@rogentos.ro>2016-08-11 00:33:31 +0100
committerV3n3RiX <venerix@rogentos.ro>2016-08-11 00:33:31 +0100
commitff5dd7b3704b9e8f9f606d4929f95694ec84ddf3 (patch)
tree393b3bd8a65eb3ec464babab42da8d9ec88851c3 /net-libs/tox/files/initd
parent4c05e04608db666140daaa94499f5f90521a2cc4 (diff)
cleanup
Diffstat (limited to 'net-libs/tox/files/initd')
-rw-r--r--net-libs/tox/files/initd35
1 files changed, 0 insertions, 35 deletions
diff --git a/net-libs/tox/files/initd b/net-libs/tox/files/initd
deleted file mode 100644
index 728cb6f5..00000000
--- a/net-libs/tox/files/initd
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/sbin/runscript
-
-PIDFILE=/run/tox-dht-bootstrap.pid
-LOGDIR=/var/log/tox-dht-bootstrap
-RUNDIR=/var/lib/tox-dht-bootstrap
-
-depend() {
- need net
-}
-
-start() {
- ebegin "Starting tox-dht-bootstrap daemon"
-
- [ -d "${LOGDIR}" ] || mkdir -p "${LOGDIR}"
- [ -d "${RUNDIR}" ] || mkdir -p "${RUNDIR}"
- chown -R nobody:nobody "${LOGDIR}" "${RUNDIR}"
-
- start-stop-daemon --start \
- --pidfile "${PIDFILE}" --make-pidfile --background \
- --stdout "${LOGDIR}/stdout" --stderr "${LOGDIR}/stderr" \
- --chdir "${RUNDIR}" \
- --user=nobody --group=nobody \
- --exec /usr/bin/DHT_bootstrap
-
- eend $?
-}
-
-stop() {
- ebegin "Stopping tox-dht-bootstrap daemon"
-
- start-stop-daemon --stop \
- --pidfile "${PIDFILE}"
-
- eend $?
-}