summaryrefslogtreecommitdiff
path: root/net-libs/tox/files
diff options
context:
space:
mode:
authorBlackNoxis <steven.darklight@gmail.com>2014-10-27 18:38:05 +0200
committerBlackNoxis <steven.darklight@gmail.com>2014-10-27 18:38:05 +0200
commit24934e623441310f644e5f72855b0f2bf9f3cd1a (patch)
treea453939bf58199bc2c3ff27bcf0accf2b221c6c4 /net-libs/tox/files
parent687f45092b4f4ccf33765cee7427f054bae22344 (diff)
Incoming! Moving Rogento.git to kogaion-desktop. Finally
Diffstat (limited to 'net-libs/tox/files')
-rw-r--r--net-libs/tox/files/confd7
-rw-r--r--net-libs/tox/files/initd35
2 files changed, 42 insertions, 0 deletions
diff --git a/net-libs/tox/files/confd b/net-libs/tox/files/confd
new file mode 100644
index 00000000..e4aac3ad
--- /dev/null
+++ b/net-libs/tox/files/confd
@@ -0,0 +1,7 @@
+# [--ipv4|--ipv6]
+cmdline=""
+
+# open node
+ip=""
+port=""
+key=""
diff --git a/net-libs/tox/files/initd b/net-libs/tox/files/initd
new file mode 100644
index 00000000..728cb6f5
--- /dev/null
+++ b/net-libs/tox/files/initd
@@ -0,0 +1,35 @@
+#!/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 $?
+}