Fix systemd unit file
This commit is contained in:
parent
82c29bfcbe
commit
282d6ec109
@ -1,15 +1,22 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Onionr Daemon
|
Description=Onionr Daemon
|
||||||
Requires=network.target tor.service
|
Documentation=https://onionr.net/docs/
|
||||||
After=network.target tor.service
|
After=network.target tor.service
|
||||||
|
Requires=network.target tor.service systemd-networkd-wait-online.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
|
||||||
Environment="DATA_DIR=/usr/share/onionr"
|
Environment="DATA_DIR=/usr/share/onionr"
|
||||||
Environment="LOG_DIR=/var/log/onionr/"
|
Environment="LOG_DIR=/var/log/onionr/"
|
||||||
|
|
||||||
ExecStart=/usr/bin/onionr --start
|
ExecStart=/usr/bin/onionr --start
|
||||||
ExecStop=/usr/bin/onionr --stop
|
ExecStop=/usr/bin/onionr --stop
|
||||||
Restart=always
|
|
||||||
|
KillMode=mixed
|
||||||
|
KillSignal=SIGQUIT
|
||||||
|
TimeoutStopSec=5s
|
||||||
|
Type=simple
|
||||||
|
Restart=on-abnormal
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=tor.service
|
WantedBy=tor.service
|
||||||
|
|
||||||
|
@ -334,6 +334,7 @@ class Onionr:
|
|||||||
function(ONIONR_TAGLINE)
|
function(ONIONR_TAGLINE)
|
||||||
if verbosity >= 2:
|
if verbosity >= 2:
|
||||||
function('Running on %s %s' % (platform.platform(), platform.release()))
|
function('Running on %s %s' % (platform.platform(), platform.release()))
|
||||||
|
function('Onionr data dir: %s' % self.dataDir)
|
||||||
|
|
||||||
def doPEX(self):
|
def doPEX(self):
|
||||||
'''make communicator do pex'''
|
'''make communicator do pex'''
|
||||||
|
Loading…
Reference in New Issue
Block a user