lokinet/debian/lokinet.lokinet.service

24 lines
716 B
SYSTEMD
Raw Normal View History

2018-10-23 11:45:14 +00:00
[Unit]
Description=LokiNET: Anonymous Network layer thingydoo, client
AssertFileNotEmpty=/var/lib/lokinet/bootstrap.signed
2019-04-05 14:58:22 +00:00
Wants=network-online.target
After=network-online.target
2018-10-23 11:45:14 +00:00
[Service]
User=_lokinet
2020-03-04 03:59:18 +00:00
Type=notify
WatchdogSec=30s
SyslogIdentifier=lokinet
WorkingDirectory=/var/lib/lokinet
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
ExecStart=/usr/bin/lokinet /var/lib/lokinet/lokinet.ini
ExecStartPost=+/usr/sbin/lokinet-resolvconf add /var/lib/lokinet/lokinet.ini
ExecStopPost=+/usr/sbin/lokinet-resolvconf remove /var/lib/lokinet/lokinet.ini
Environment=LOKINET_NETID=lokinet
2018-10-23 11:45:14 +00:00
Restart=always
RestartSec=5s
2018-10-23 11:45:14 +00:00
[Install]
WantedBy=multi-user.target