[systemd-commits] 2 commits - fixme Makefile.am units/var-lock.mount units/var-lock.service units/var-run.mount units/var-run.service

Kay Sievers kay at kemper.freedesktop.org
Tue Aug 17 01:33:30 PDT 2010


 Makefile.am            |    2 ++
 fixme                  |    2 ++
 units/var-lock.mount   |    3 ---
 units/var-lock.service |   20 ++++++++++++++++++++
 units/var-run.mount    |    3 ---
 units/var-run.service  |   20 ++++++++++++++++++++
 6 files changed, 44 insertions(+), 6 deletions(-)

New commits:
commit 21c57e1d0be8dafde46d684dbe31178d1b6841f4
Author: Kay Sievers <kay.sievers at vrfy.org>
Date:   Tue Aug 17 10:33:37 2010 +0200

    update fixme

diff --git a/fixme b/fixme
index 0f342b6..1d5f006 100644
--- a/fixme
+++ b/fixme
@@ -1,3 +1,5 @@
+* ValidNoProcess= ? ContinueAfterExit=, ActiveAfterExit=, KeepAfterExit=
+
 * systemd.log_level=debug should overwrite 'quiet' ?
 
 * implicit 'default.target' ?
commit 3c268bdf8a8d56799987c1bddb46371867887062
Author: Kay Sievers <kay.sievers at vrfy.org>
Date:   Tue Aug 17 10:17:42 2010 +0200

    units: add var-run.service var-lock.service

diff --git a/Makefile.am b/Makefile.am
index de85b79..f187b4b 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -152,7 +152,9 @@ dist_systemunit_DATA = \
 	units/sys-kernel-security.automount \
 	units/sys-kernel-security.mount \
 	units/var-lock.mount \
+	units/var-lock.service \
 	units/var-run.mount \
+	units/var-run.service \
 	units/printer.target \
 	units/bluetooth.target \
 	units/smartcard.target
diff --git a/units/var-lock.mount b/units/var-lock.mount
index 17c4f52..f14ea94 100644
--- a/units/var-lock.mount
+++ b/units/var-lock.mount
@@ -14,6 +14,3 @@ What=tmpfs
 Where=/var/lock
 Type=tmpfs
 Options=mode=775,gid=lock
-
-[Install]
-WantedBy=local-fs.target
diff --git a/units/var-lock.service b/units/var-lock.service
new file mode 100644
index 0000000..b148b5d
--- /dev/null
+++ b/units/var-lock.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=Lock Directory
+DefaultDependencies=no
+Requires=var-lock.mount
+Before=local-fs.target
+
+[Service]
+Type=oneshot
+ValidNoProcess=yes
+ExecStart=/bin/mkdir -p /var/lock/subsys
+
+[Install]
+WantedBy=local-fs.target
diff --git a/units/var-run.mount b/units/var-run.mount
index 90dfe0e..f786289 100644
--- a/units/var-run.mount
+++ b/units/var-run.mount
@@ -14,6 +14,3 @@ What=tmpfs
 Where=/var/run
 Type=tmpfs
 Options=mode=755
-
-[Install]
-WantedBy=local-fs.target
diff --git a/units/var-run.service b/units/var-run.service
new file mode 100644
index 0000000..10e2b05
--- /dev/null
+++ b/units/var-run.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=Runtime Directory
+DefaultDependencies=no
+Requires=var-run.mount
+Before=local-fs.target
+
+[Service]
+Type=oneshot
+ValidNoProcess=yes
+ExecStart=/bin/touch /var/run/utmp ; /bin/chown root:utmp /var/run/utmp
+
+[Install]
+WantedBy=local-fs.target


More information about the systemd-commits mailing list