mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
86cd3141d0
@arthurtiteica has pointed out that systemd has more suitable facilities for creating a temporary directory for a PID file rather than calling ExecStartPre, which requires an absolute path to coreutils executables we used for creating a directory and changing its owner, paths of which are are not universal across distributions. Systemd can take care of it for us without need to provide absolute paths, which is what we use here.
18 lines
426 B
Desktop File
18 lines
426 B
Desktop File
[Unit]
|
|
Description=Tox DHT Bootstrap Daemon
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=forking
|
|
RuntimeDirectory=tox-bootstrapd
|
|
RuntimeDirectoryMode=750
|
|
PIDFile=/var/run/tox-bootstrapd/tox-bootstrapd.pid
|
|
WorkingDirectory=/var/lib/tox-bootstrapd
|
|
ExecStart=/usr/local/bin/tox-bootstrapd /etc/tox-bootstrapd.conf
|
|
User=tox-bootstrapd
|
|
Group=tox-bootstrapd
|
|
#CapabilityBoundingSet=CAP_NET_BIND_SERVICE
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|