mirror of
https://github.com/monero-project/monero.git
synced 2024-11-18 00:37:43 +00:00
utils: systemd: dir for pidfile with permissions
monerod runs as user monero which does not have write permissions for /var/run. Use systemd's RuntimeDirectory feature to handle this.
This commit is contained in:
parent
02e5dcd2fa
commit
df322ddde5
1 changed files with 3 additions and 2 deletions
|
@ -6,12 +6,13 @@ After=network.target
|
|||
User=monero
|
||||
Group=monero
|
||||
WorkingDirectory=~
|
||||
RuntimeDirectory=monero
|
||||
|
||||
Type=forking
|
||||
PIDFile=/var/run/monerod.pid
|
||||
PIDFile=/run/monero/monerod.pid
|
||||
|
||||
ExecStart=/usr/bin/monerod --config-file /etc/monerod.conf \
|
||||
--detach --pidfile /var/run/monerod.pid
|
||||
--detach --pidfile /run/monero/monerod.pid
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
|
Loading…
Reference in a new issue