Commit f556ea46 authored by Lennart Poettering's avatar Lennart Poettering
Browse files

units: add generic sysctl/hwclock-save service

parent 40b32031
......@@ -156,6 +156,8 @@ dist_systemunit_DATA = \
units/var-lock.service \
units/var-run.mount \
units/var-run.service \
units/hwclock-save.service \
units/sysctl.service \
units/printer.target \
units/bluetooth.target \
units/smartcard.target
......
......@@ -15,8 +15,6 @@
* add #ifdefs for non-sysv builds
* reinvestigate hwclock
* "disabled" load state?
* ability to kill services? i.e. in contrast to stopping them, go directly
......
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
[Unit]
Description=Update RTC With System Clock
DefaultDependencies=no
Before=poweroff.service reboot.service halt.service killall.service
[Service]
Type=oneshot
ExecStart=/sbin/hwclock --systohc
[Install]
WantedBy=shutdown.target
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
[Unit]
Description=Apply Kernel Variables
DefaultDependencies=no
Conflicts=shutdown.target
Before=shutdown.target
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/sbin/sysctl -e -q -p /etc/sysctl.conf
[Install]
WantedBy=sysinit.target
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment