chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
units: use ConditionDirectoryNotEmpty= where applicable
[elogind.git]
/
units
/
sysctl.service
diff --git
a/units/sysctl.service
b/units/sysctl.service
index 72dbb1f56a3897e8a3df9b6367caed1719b60176..ba5626a3a86fb59d425cefe7a6469ec33c84252e 100644
(file)
--- a/
units/sysctl.service
+++ b/
units/sysctl.service
@@
-10,9
+10,11
@@
Description=Apply Kernel Variables
DefaultDependencies=no
Conflicts=shutdown.target
After=systemd-readahead-collect.service systemd-readahead-replay.service
DefaultDependencies=no
Conflicts=shutdown.target
After=systemd-readahead-collect.service systemd-readahead-replay.service
-Before=shutdown.target
+Before=basic.target shutdown.target
+ConditionPathExists=/etc/sysctl.conf
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/sbin/sysctl -e -q -p /etc/sysctl.conf
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/sbin/sysctl -e -q -p /etc/sysctl.conf
+StandardOutput=syslog