2019-03-28 18:01:23 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Onionr Daemon
|
2019-06-07 00:28:46 +00:00
|
|
|
Documentation=https://onionr.net/docs/
|
2019-03-28 18:01:23 +00:00
|
|
|
After=network.target tor.service
|
2019-06-07 00:28:46 +00:00
|
|
|
Requires=network.target tor.service systemd-networkd-wait-online.service
|
2019-03-28 18:01:23 +00:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Environment="DATA_DIR=/usr/share/onionr"
|
|
|
|
Environment="LOG_DIR=/var/log/onionr/"
|
2019-06-07 00:28:46 +00:00
|
|
|
|
2019-03-28 18:01:23 +00:00
|
|
|
ExecStart=/usr/bin/onionr --start
|
|
|
|
ExecStop=/usr/bin/onionr --stop
|
2019-06-07 00:28:46 +00:00
|
|
|
|
|
|
|
KillMode=mixed
|
|
|
|
KillSignal=SIGQUIT
|
|
|
|
TimeoutStopSec=5s
|
|
|
|
Type=simple
|
|
|
|
Restart=on-abnormal
|
2019-03-28 18:01:23 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=tor.service
|
2019-06-07 00:28:46 +00:00
|
|
|
|