lokinet/debian/lokinet.lokinet.service
Jason Rhinelander 6581ea7b67 Fix bootstrap file assertion in service files
They belong in the [Unit] section, not the [Service] section.
2019-12-28 13:12:32 -04:00

20 lines
576 B
Desktop File

[Unit]
Description=LokiNET: Anonymous Network layer thingydoo, client
Wants=network-online.target
After=network-online.target
AssertFileNotEmpty=/var/lib/lokinet/bootstrap.signed
[Service]
User=_lokinet
SyslogIdentifier=lokinet
WorkingDirectory=/var/lib/lokinet
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
Restart=always
RestartSec=5s
[Install]
WantedBy=multi-user.target