]> git.ipfire.org Git - thirdparty/systemd.git/blame - units/systemd-sysctl.service.in
relicense to LGPLv2.1 (with exceptions)
[thirdparty/systemd.git] / units / systemd-sysctl.service.in
CommitLineData
f556ea46
LP
1# This file is part of systemd.
2#
3# systemd is free software; you can redistribute it and/or modify it
5430f7f2
LP
4# under the terms of the GNU Lesser General Public License as published by
5# the Free Software Foundation; either version 2.1 of the License, or
f556ea46
LP
6# (at your option) any later version.
7
8[Unit]
9Description=Apply Kernel Variables
10DefaultDependencies=no
11Conflicts=shutdown.target
4bb2357f 12After=systemd-readahead-collect.service systemd-readahead-replay.service
e096bf2f 13Before=sysinit.target shutdown.target
267632f0 14ConditionPathExists=|/etc/sysctl.conf
adf70c5e
KS
15ConditionDirectoryNotEmpty=|/lib/sysctl.d
16ConditionDirectoryNotEmpty=|/usr/lib/sysctl.d
17ConditionDirectoryNotEmpty=|/usr/local/lib/sysctl.d
267632f0 18ConditionDirectoryNotEmpty=|/etc/sysctl.d
adf70c5e 19ConditionDirectoryNotEmpty=|/run/sysctl.d
f556ea46
LP
20
21[Service]
22Type=oneshot
23RemainAfterExit=yes
8e1bd70d 24ExecStart=@rootlibexecdir@/systemd-sysctl