Fix systemd unit file

This commit is contained in:
Arinerron 2019-06-06 17:28:46 -07:00
parent 82c29bfcbe
commit 282d6ec109
No known key found for this signature in database
GPG Key ID: 99383627861C62F0
2 changed files with 11 additions and 3 deletions

View File

@ -1,15 +1,22 @@
[Unit]
Description=Onionr Daemon
Requires=network.target tor.service
Documentation=https://onionr.net/docs/
After=network.target tor.service
Requires=network.target tor.service systemd-networkd-wait-online.service
[Service]
Type=simple
Environment="DATA_DIR=/usr/share/onionr"
Environment="LOG_DIR=/var/log/onionr/"
ExecStart=/usr/bin/onionr --start
ExecStop=/usr/bin/onionr --stop
Restart=always
KillMode=mixed
KillSignal=SIGQUIT
TimeoutStopSec=5s
Type=simple
Restart=on-abnormal
[Install]
WantedBy=tor.service

View File

@ -334,6 +334,7 @@ class Onionr:
function(ONIONR_TAGLINE)
if verbosity >= 2:
function('Running on %s %s' % (platform.platform(), platform.release()))
function('Onionr data dir: %s' % self.dataDir)
def doPEX(self):
'''make communicator do pex'''