2015-01-30 14:29:03 +08:00
|
|
|
[Unit]
|
|
|
|
Description=Tox DHT Bootstrap Daemon
|
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=forking
|
2015-05-10 15:04:42 +08:00
|
|
|
RuntimeDirectory=tox-bootstrapd
|
|
|
|
RuntimeDirectoryMode=750
|
|
|
|
PIDFile=/var/run/tox-bootstrapd/tox-bootstrapd.pid
|
2015-01-30 14:29:03 +08:00
|
|
|
WorkingDirectory=/var/lib/tox-bootstrapd
|
2016-01-01 07:48:44 +08:00
|
|
|
ExecStart=/usr/local/bin/tox-bootstrapd --config /etc/tox-bootstrapd.conf
|
2015-01-30 14:29:03 +08:00
|
|
|
User=tox-bootstrapd
|
|
|
|
Group=tox-bootstrapd
|
2018-10-18 16:23:21 +08:00
|
|
|
# TCP Server needs to be able to have lots of TCP sockets open.
|
|
|
|
LimitNOFILE=32768
|
|
|
|
# Uncomment to allow binding to ports < 1024, e.g. 443 (HTTPS) for TCP Server
|
2015-01-30 14:29:03 +08:00
|
|
|
#CapabilityBoundingSet=CAP_NET_BIND_SERVICE
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|