summaryrefslogtreecommitdiff
path: root/units
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-08-16 15:37:52 +0200
committerLennart Poettering <lennart@poettering.net>2010-08-16 15:37:52 +0200
commitf61448083198dc0e4e0d19a916bcd478336cc85d (patch)
treee9325f22f715d5788b46e5ecbeb6e2fc94a73010 /units
parent6e200d55ae538fc29360cdaa9863f30cdddf58f3 (diff)
systemctl: add support for delayed shutdown, similar to sysv in style
Diffstat (limited to 'units')
-rw-r--r--units/.gitignore1
-rw-r--r--units/systemd-initctl.socket1
-rw-r--r--units/systemd-logger.service.in1
-rw-r--r--units/systemd-logger.socket3
-rw-r--r--units/systemd-shutdownd.service.in15
-rw-r--r--units/systemd-shutdownd.socket16
6 files changed, 32 insertions, 5 deletions
diff --git a/units/.gitignore b/units/.gitignore
index 0318e4825..9ac34010c 100644
--- a/units/.gitignore
+++ b/units/.gitignore
@@ -1,3 +1,4 @@
+systemd-shutdownd.service
systemd-random-seed-load.service
systemd-random-seed-save.service
systemd-initctl.service
diff --git a/units/systemd-initctl.socket b/units/systemd-initctl.socket
index 3db2683f6..bcb54b342 100644
--- a/units/systemd-initctl.socket
+++ b/units/systemd-initctl.socket
@@ -10,7 +10,6 @@
[Unit]
Description=systemd /dev/initctl Compatibility Socket
DefaultDependencies=no
-After=sysinit.target
Before=sockets.target
[Socket]
diff --git a/units/systemd-logger.service.in b/units/systemd-logger.service.in
index 2a9ec2106..200443897 100644
--- a/units/systemd-logger.service.in
+++ b/units/systemd-logger.service.in
@@ -9,7 +9,6 @@
[Unit]
Description=systemd Logging Daemon
-DefaultDependencies=no
After=@SPECIAL_SYSLOG_SERVICE@
[Service]
diff --git a/units/systemd-logger.socket b/units/systemd-logger.socket
index 57a590dba..f62b582d3 100644
--- a/units/systemd-logger.socket
+++ b/units/systemd-logger.socket
@@ -9,9 +9,6 @@
[Unit]
Description=systemd Logging Socket
-DefaultDependencies=no
-After=sysinit.target
-Before=sockets.target
[Socket]
ListenStream=@/org/freedesktop/systemd1/logger
diff --git a/units/systemd-shutdownd.service.in b/units/systemd-shutdownd.service.in
new file mode 100644
index 000000000..5d0bd77a8
--- /dev/null
+++ b/units/systemd-shutdownd.service.in
@@ -0,0 +1,15 @@
+# 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.
+
+# See systemd.special(7) for details
+
+[Unit]
+Description=systemd Shutdown Daemon
+DefaultDependencies=no
+
+[Service]
+ExecStart=@rootlibexecdir@/systemd-shutdownd
diff --git a/units/systemd-shutdownd.socket b/units/systemd-shutdownd.socket
new file mode 100644
index 000000000..9a95fa92f
--- /dev/null
+++ b/units/systemd-shutdownd.socket
@@ -0,0 +1,16 @@
+# 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.
+
+# See systemd.special(7) for details
+
+[Unit]
+Description=systemd Shutdown Socket
+DefaultDependencies=no
+Before=sockets.target
+
+[Socket]
+ListenStream=@/org/freedesktop/systemd1/shutdownd