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/gentoo/halt.service | 2 +- units/gentoo/killall.service | 2 +- units/gentoo/poweroff.service | 2 +- units/gentoo/reboot.service | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'units/gentoo') diff --git a/units/gentoo/halt.service b/units/gentoo/halt.service index 56c3f2e60e..826c69f061 100644 --- a/units/gentoo/halt.service +++ b/units/gentoo/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 RC_DOWN_HARDDISK=yes ExecStart=/etc/init.d/shutdown.sh diff --git a/units/gentoo/killall.service b/units/gentoo/killall.service index 3f107e3be5..8b42af87b5 100644 --- a/units/gentoo/killall.service +++ b/units/gentoo/killall.service @@ -12,7 +12,7 @@ After=shutdown.target RefuseManualStart=yes [Service] -Type=finish +Type=oneshot ValidNoProcess=yes ExecStart=-/etc/init.d/killprocs start StandardOutput=tty diff --git a/units/gentoo/poweroff.service b/units/gentoo/poweroff.service index 40126b211e..8a5a62794f 100644 --- a/units/gentoo/poweroff.service +++ b/units/gentoo/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=RC_DOWN_HARDDISK=yes ExecStart=/etc/init.d/shutdown.sh diff --git a/units/gentoo/reboot.service b/units/gentoo/reboot.service index de1665579d..b5defb1680 100644 --- a/units/gentoo/reboot.service +++ b/units/gentoo/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 ExecStart=/etc/init.d/reboot.sh StandardOutput=tty -- cgit v1.2.3-54-g00ecf