[systemd-commits] 3 commits - fixme Makefile.am src/dbus.c units/hwclock-save.service units/sysctl.service

Lennart Poettering lennart at kemper.freedesktop.org
Tue Aug 17 13:15:35 PDT 2010


 Makefile.am                |    2 ++
 fixme                      |    7 -------
 src/dbus.c                 |    2 +-
 units/hwclock-save.service |   18 ++++++++++++++++++
 units/sysctl.service       |   20 ++++++++++++++++++++
 5 files changed, 41 insertions(+), 8 deletions(-)

New commits:
commit 9028d0ecba8bc51c4e2067a7571eb789cb20d308
Author: Lennart Poettering <lennart at poettering.net>
Date:   Tue Aug 17 22:14:43 2010 +0200

    dbus: downgrade disconnection message

diff --git a/src/dbus.c b/src/dbus.c
index 340e6af..e8828d0 100644
--- a/src/dbus.c
+++ b/src/dbus.c
@@ -346,7 +346,7 @@ static DBusHandlerResult api_bus_message_filter(DBusConnection *connection, DBus
                           dbus_message_get_path(message));
 
         if (dbus_message_is_signal(message, DBUS_INTERFACE_LOCAL, "Disconnected")) {
-                log_error("Warning! API D-Bus connection terminated.");
+                log_debug("API D-Bus connection terminated.");
                 bus_done_api(m);
 
         } else if (dbus_message_is_signal(message, DBUS_INTERFACE_DBUS, "NameOwnerChanged")) {
commit f556ea46f61bc883d5a7a01b8b55b37b5b9efffb
Author: Lennart Poettering <lennart at poettering.net>
Date:   Tue Aug 17 22:14:03 2010 +0200

    units: add generic sysctl/hwclock-save service

diff --git a/Makefile.am b/Makefile.am
index 536cabb..7414d56 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -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
diff --git a/fixme b/fixme
index 6eb9448..081907f 100644
--- a/fixme
+++ b/fixme
@@ -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
diff --git a/units/hwclock-save.service b/units/hwclock-save.service
new file mode 100644
index 0000000..23866d2
--- /dev/null
+++ b/units/hwclock-save.service
@@ -0,0 +1,18 @@
+#  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
diff --git a/units/sysctl.service b/units/sysctl.service
new file mode 100644
index 0000000..3186cc0
--- /dev/null
+++ b/units/sysctl.service
@@ -0,0 +1,20 @@
+#  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
commit 40b3203173ad78fdb5ceb257b08a93a587102518
Author: Lennart Poettering <lennart at poettering.net>
Date:   Tue Aug 17 22:09:18 2010 +0200

    update fixme

diff --git a/fixme b/fixme
index 077f85d..6eb9448 100644
--- a/fixme
+++ b/fixme
@@ -2,11 +2,6 @@
 
 * dot output for --test showing the 'initial transaction'
 
-* check 'disable'
-  <Viking-Ice>    "Warning: Unit file changed in disk, 'systemctl --system daemon-reload' recommended
-  <kay>           when does it do that?
-  <Viking-Ice>    if you disable the service
-
 * have a simple syslog bridge providing /dev/log and forward messages
   to /dev/kmsg. at the moment the real syslog can be started, the bridge
   is stopped and the open /dev/log fd to the real syslog. that way we


More information about the systemd-commits mailing list