From f61448083198dc0e4e0d19a916bcd478336cc85d Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 16 Aug 2010 15:37:52 +0200 Subject: systemctl: add support for delayed shutdown, similar to sysv in style --- units/.gitignore | 1 + units/systemd-initctl.socket | 1 - units/systemd-logger.service.in | 1 - units/systemd-logger.socket | 3 --- units/systemd-shutdownd.service.in | 15 +++++++++++++++ units/systemd-shutdownd.socket | 16 ++++++++++++++++ 6 files changed, 32 insertions(+), 5 deletions(-) create mode 100644 units/systemd-shutdownd.service.in create mode 100644 units/systemd-shutdownd.socket (limited to 'units') diff --git a/units/.gitignore b/units/.gitignore index 0318e4825d..9ac34010c5 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 3db2683f6b..bcb54b3424 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 2a9ec21067..2004438971 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 57a590dba9..f62b582d3e 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 0000000000..5d0bd77a8f --- /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 0000000000..9a95fa92f0 --- /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 -- cgit v1.2.3-54-g00ecf