From 34e9ba669e75fb3b8f481076e75df5c2abb8192b Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 13 Aug 2010 18:23:01 +0200 Subject: service: rename Type=finish to Type=oneshot and allow multiple ExecStart= lines for oneshot services In contrast to the other service types oneshot services are usually not long lasting and there's not necessarily a single clean main process for them. This change allows multiple ExecStart= lines for this type of services so that the admin/developer doesn't have to arbitrarily pick on of various sequential commands as the "main one". --- units/fedora/halt.service | 2 +- units/fedora/killall.service | 2 +- units/fedora/plymouth-quit.service | 2 +- units/fedora/poweroff.service | 2 +- units/fedora/reboot.service | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) (limited to 'units/fedora') diff --git a/units/fedora/halt.service b/units/fedora/halt.service index 6e2745eedd..a6c4786a8b 100644 --- a/units/fedora/halt.service +++ b/units/fedora/halt.service @@ -12,7 +12,7 @@ Requires=shutdown.target umount.target killall.service After=shutdown.target umount.target killall.service [Service] -Type=finish +Type=oneshot ValidNoProcess=yes Environment=INIT_HALT=HALT RUNLEVEL=0 ExecStart=/etc/init.d/halt start diff --git a/units/fedora/killall.service b/units/fedora/killall.service index 3b27375fe5..53c65d4a3b 100644 --- a/units/fedora/killall.service +++ b/units/fedora/killall.service @@ -12,7 +12,7 @@ After=shutdown.target RefuseManualStart=yes [Service] -Type=finish +Type=oneshot ValidNoProcess=yes ExecStart=-/etc/init.d/killall start StandardOutput=tty diff --git a/units/fedora/plymouth-quit.service b/units/fedora/plymouth-quit.service index faf8b4d7a7..869a2ec596 100644 --- a/units/fedora/plymouth-quit.service +++ b/units/fedora/plymouth-quit.service @@ -11,7 +11,7 @@ Before=getty@tty1.service [Service] ExecStart=-/usr/bin/plymouth quit -Type=finish +Type=oneshot [Install] WantedBy=multi-user.target diff --git a/units/fedora/poweroff.service b/units/fedora/poweroff.service index cd6ec3edc9..7597f4f651 100644 --- a/units/fedora/poweroff.service +++ b/units/fedora/poweroff.service @@ -12,7 +12,7 @@ Requires=shutdown.target umount.target killall.service After=shutdown.target umount.target killall.service [Service] -Type=finish +Type=oneshot ValidNoProcess=yes Environment=RUNLEVEL=0 ExecStart=/etc/init.d/halt start diff --git a/units/fedora/reboot.service b/units/fedora/reboot.service index 01bd46395d..6120ceb821 100644 --- a/units/fedora/reboot.service +++ b/units/fedora/reboot.service @@ -12,7 +12,7 @@ Requires=shutdown.target umount.target killall.service After=shutdown.target umount.target killall.service [Service] -Type=finish +Type=oneshot ValidNoProcess=yes Environment=RUNLEVEL=6 ExecStart=/etc/init.d/reboot start -- cgit v1.2.3-54-g00ecf