2018-10-23 11:45:14 +00:00
|
|
|
[Unit]
|
2019-10-29 17:02:40 +00:00
|
|
|
Description=LokiNET: Anonymous Network layer thingydoo, client
|
2020-01-14 21:16:12 +00:00
|
|
|
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]
|
2019-07-26 21:13:06 +00:00
|
|
|
User=_lokinet
|
2020-03-04 03:59:18 +00:00
|
|
|
Type=notify
|
|
|
|
WatchdogSec=30s
|
2019-10-29 18:34:01 +00:00
|
|
|
SyslogIdentifier=lokinet
|
|
|
|
WorkingDirectory=/var/lib/lokinet
|
2020-01-14 21:16:12 +00:00
|
|
|
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
|
|
|
|
AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
|
2019-10-29 18:34:01 +00:00
|
|
|
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
|
2019-12-16 03:20:08 +00:00
|
|
|
Environment=LOKINET_NETID=lokinet
|
2018-10-23 11:45:14 +00:00
|
|
|
Restart=always
|
2019-10-29 17:02:40 +00:00
|
|
|
RestartSec=5s
|
2018-10-23 11:45:14 +00:00
|
|
|
|
|
|
|
[Install]
|
2019-07-26 21:13:06 +00:00
|
|
|
WantedBy=multi-user.target
|