Fix systemd unit file
This commit is contained in:
parent
82c29bfcbe
commit
282d6ec109
@ -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
|
||||
|
||||
|
@ -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'''
|
||||
|
Loading…
Reference in New Issue
Block a user