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/suse/halt.service | 2 +- units/suse/poweroff.service | 2 +- units/suse/reboot.service | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'units/suse') diff --git a/units/suse/halt.service b/units/suse/halt.service index 559a51ce75..32b7dc204a 100644 --- a/units/suse/halt.service +++ b/units/suse/halt.service @@ -12,7 +12,7 @@ Requires=shutdown.target umount.target After=shutdown.target umount.target [Service] -Type=finish +Type=oneshot ValidNoProcess=yes Environment=INIT_HALT=HALT RUNLEVEL=0 COLD_BOOT=1 ExecStart=/etc/init.d/halt diff --git a/units/suse/poweroff.service b/units/suse/poweroff.service index f68882c143..13b13b0427 100644 --- a/units/suse/poweroff.service +++ b/units/suse/poweroff.service @@ -12,7 +12,7 @@ Requires=shutdown.target umount.target After=shutdown.target umount.target [Service] -Type=finish +Type=oneshot ValidNoProcess=yes Environment=COLD_BOOT=1 ExecStart=/etc/init.d/halt diff --git a/units/suse/reboot.service b/units/suse/reboot.service index 6b2982a9a0..3ee290e659 100644 --- a/units/suse/reboot.service +++ b/units/suse/reboot.service @@ -12,7 +12,7 @@ Requires=shutdown.target umount.target After=shutdown.target umount.target [Service] -Type=finish +Type=oneshot ValidNoProcess=yes Environment=COLD_BOOT=1 ExecStart=/etc/init.d/reboot -- cgit v1.2.3-54-g00ecf