2020-11-09 12:23:58 +08:00
|
|
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
2017-11-19 00:35:03 +08:00
|
|
|
#
|
2010-08-18 04:14:03 +08:00
|
|
|
# This file is part of systemd.
|
|
|
|
#
|
|
|
|
# systemd is free software; you can redistribute it and/or modify it
|
2012-04-12 06:20:58 +08:00
|
|
|
# under the terms of the GNU Lesser General Public License as published by
|
|
|
|
# the Free Software Foundation; either version 2.1 of the License, or
|
2010-08-18 04:14:03 +08:00
|
|
|
# (at your option) any later version.
|
|
|
|
|
|
|
|
[Unit]
|
|
|
|
Description=Apply Kernel Variables
|
2012-05-31 22:00:34 +08:00
|
|
|
Documentation=man:systemd-sysctl.service(8) man:sysctl.d(5)
|
2010-08-18 04:14:03 +08:00
|
|
|
DefaultDependencies=no
|
2013-03-23 10:10:41 +08:00
|
|
|
Conflicts=shutdown.target
|
2013-03-23 10:54:16 +08:00
|
|
|
After=systemd-modules-load.service
|
2010-11-19 23:24:21 +08:00
|
|
|
Before=sysinit.target shutdown.target
|
2016-10-21 01:36:28 +08:00
|
|
|
ConditionPathIsReadWrite=/proc/sys/net/
|
2010-08-18 04:14:03 +08:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=oneshot
|
|
|
|
RemainAfterExit=yes
|
2023-06-12 09:15:19 +08:00
|
|
|
ExecStart={{LIBEXECDIR}}/systemd-sysctl
|
2015-04-17 09:41:18 +08:00
|
|
|
TimeoutSec=90s
|
2023-06-08 20:09:36 +08:00
|
|
|
ImportCredential=sysctl.*
|