summaryrefslogtreecommitdiff
path: root/units
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2017-08-02 17:35:11 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2017-08-08 12:17:01 +0900
commitd0e62ae0f6d05657a9bec134cefb0994d9734e67 (patch)
treec44f7854613d90f8cc7380ff3c538989ab395dfb /units
parentc23c34bcba944d597bdc8e210fb9f0e00d662629 (diff)
downloadsystemd-d0e62ae0f6d05657a9bec134cefb0994d9734e67.tar.gz
units: use {State,Logs}Directory= if they are applicable
Diffstat (limited to 'units')
-rw-r--r--units/systemd-coredump@.service.in2
-rw-r--r--units/systemd-journal-remote.service.in2
-rw-r--r--units/systemd-journal-upload.service.in2
3 files changed, 3 insertions, 3 deletions
diff --git a/units/systemd-coredump@.service.in b/units/systemd-coredump@.service.in
index 18f2d2d605..f6044a4d3f 100644
--- a/units/systemd-coredump@.service.in
+++ b/units/systemd-coredump@.service.in
@@ -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
diff --git a/units/systemd-journal-remote.service.in b/units/systemd-journal-remote.service.in
index 5404bf1c03..62e862a837 100644
--- a/units/systemd-journal-remote.service.in
+++ b/units/systemd-journal-remote.service.in
@@ -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
diff --git a/units/systemd-journal-upload.service.in b/units/systemd-journal-upload.service.in
index d00b929211..b0bee3925e 100644
--- a/units/systemd-journal-upload.service.in
+++ b/units/systemd-journal-upload.service.in
@@ -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