]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
units: use {State,Logs}Directory= if they are applicable
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 2 Aug 2017 08:35:11 +0000 (17:35 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 8 Aug 2017 03:17:01 +0000 (12:17 +0900)
units/systemd-coredump@.service.in
units/systemd-journal-remote.service.in
units/systemd-journal-upload.service.in

index 18f2d2d605c6344446e04d8471b321b2f7278176..f6044a4d3f35b4745bd624e71119ae9d34d61750 100644 (file)
@@ -34,4 +34,4 @@ RestrictNamespaces=yes
 RestrictAddressFamilies=AF_UNIX
 SystemCallFilter=~@clock @cpu-emulation @debug @keyring @module @mount @obsolete @raw-io @reboot @swap
 SystemCallArchitectures=native
-ReadWritePaths=/var/lib/systemd/coredump
+StateDirectory=systemd/coredump
index 5404bf1c035bb884e3ba60c52aea5d9f34dd604e..62e862a8377c6b7a95e52ad4ffce4e8bbef4a644 100644 (file)
@@ -28,7 +28,7 @@ RestrictRealtime=yes
 RestrictNamespaces=yes
 RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
 SystemCallArchitectures=native
-ReadWritePaths=/var/log/journal/remote
+LogsDirectory=journal/remote
 
 [Install]
 Also=systemd-journal-remote.socket
index d00b9292117376d19f46c9c6e813d40ead4f4d74..b0bee3925e3194987ff78897d5cdfbe1ebd971a8 100644 (file)
@@ -28,7 +28,7 @@ RestrictRealtime=yes
 RestrictNamespaces=yes
 RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
 SystemCallArchitectures=native
-ReadWritePaths=/var/lib/systemd/journal-upload
+StateDirectory=systemd/journal-upload
 
 # If there are many split up journal files we need a lot of fds to
 # access them all and combine