diff options
author | redfish <redfish@galactica.pw> | 2017-09-09 13:11:21 -0400 |
---|---|---|
committer | redfish <redfish@galactica.pw> | 2017-09-10 14:41:08 -0400 |
commit | df322ddde5b4550194317c1ea2837f70c8c2f034 (patch) | |
tree | 68830a1a8e4a5ab21b89b3856a4ea50d4bb11a07 /utils | |
parent | Merge pull request #2384 (diff) | |
download | monero-df322ddde5b4550194317c1ea2837f70c8c2f034.tar.xz |
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.
Diffstat (limited to 'utils')
-rw-r--r-- | utils/systemd/monerod.service | 5 |
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 |