aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-09-25 16:46:08 +0200
committerRiccardo Spagni <ric@spagni.net>2017-09-25 16:46:08 +0200
commit4c58b7edb862a96623651d0387f150417ada92ad (patch)
treee4f9aeb693309fa820328020d85d98783a436254
parentMerge pull request #2418 (diff)
parentutils: systemd: dir for pidfile with permissions (diff)
downloadmonero-4c58b7edb862a96623651d0387f150417ada92ad.tar.xz
Merge pull request #2425
df322ddd utils: systemd: dir for pidfile with permissions (redfish)
-rw-r--r--utils/systemd/monerod.service5
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/systemd/monerod.service b/utils/systemd/monerod.service
index 12395eb8c..96e88a2d3 100644
--- a/utils/systemd/monerod.service
+++ b/utils/systemd/monerod.service
@@ -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