From 71693f06a144dd823e5b0b1b5af5a97372f9b4eb Mon Sep 17 00:00:00 2001 From: Age Bosma Date: Wed, 6 May 2020 13:00:59 +0200 Subject: systemd: Make sure required folders exist The default monero.conf file depends on the existence of the folders `/var/log/monero/` and `/var/lib/monero/`. This change makes sure systemd will create them, together with the proper permissions, if they don't exist. `StateDirectory` can be considered an extra safety in case the user `monero` happens to have been created with specifying `/var/lib/monero/` as a home folder but without actually creating it. --- utils/systemd/monerod.service | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utils/systemd/monerod.service b/utils/systemd/monerod.service index 5f37e54b2..dbb9e8aaa 100644 --- a/utils/systemd/monerod.service +++ b/utils/systemd/monerod.service @@ -7,6 +7,8 @@ User=monero Group=monero WorkingDirectory=~ RuntimeDirectory=monero +StateDirectory=monero +LogsDirectory=monero # Clearnet config # -- cgit v1.2.3