summaryrefslogtreecommitdiff
path: root/net-libs/tox/files/tox-bootstrapd.service
diff options
context:
space:
mode:
authorBlackNoxis <steven.darklight@gmail.com>2015-08-24 20:45:13 +0300
committerBlackNoxis <steven.darklight@gmail.com>2015-08-24 20:45:13 +0300
commit3a33f2966f834d3520b03df59018e3d0295fcc69 (patch)
tree3659aaf14090f23f793a297acc1df879c4cacc4a /net-libs/tox/files/tox-bootstrapd.service
parent7fcb54b4b7928c799f45b3c7800443d39b9f2ce7 (diff)
[toxcore] adaugat toxcore
Diffstat (limited to 'net-libs/tox/files/tox-bootstrapd.service')
-rw-r--r--net-libs/tox/files/tox-bootstrapd.service18
1 files changed, 18 insertions, 0 deletions
diff --git a/net-libs/tox/files/tox-bootstrapd.service b/net-libs/tox/files/tox-bootstrapd.service
new file mode 100644
index 00000000..1581026c
--- /dev/null
+++ b/net-libs/tox/files/tox-bootstrapd.service
@@ -0,0 +1,18 @@
+[Unit]
+Description=Tox DHT Bootstrap Daemon
+After=network.target
+
+[Service]
+Type=forking
+PermissionsStartOnly=true
+ExecStartPre=-/bin/mkdir /var/run/tox-bootstrapd -p
+ExecStartPre=/bin/chown tox:tox -R /var/run/tox-bootstrapd
+WorkingDirectory=/var/lib/tox-bootstrapd
+ExecStart=/usr/bin/tox-bootstrapd /etc/tox-bootstrapd.conf
+User=tox
+Group=tox
+PIDFile=/var/run/tox-bootstrapd/tox-bootstrapd.pid
+#CapabilityBoundingSet=CAP_NET_BIND_SERVICE
+
+[Install]
+WantedBy=multi-user.target