summaryrefslogtreecommitdiff
path: root/units/arch
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-08-13 18:23:01 +0200
committerLennart Poettering <lennart@poettering.net>2010-08-13 18:23:01 +0200
commit34e9ba669e75fb3b8f481076e75df5c2abb8192b (patch)
tree50027c6f4abe34d67d7309c4d6009131701dee88 /units/arch
parent00b07cb3f3e26511f0627af686aa18652e780177 (diff)
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".
Diffstat (limited to 'units/arch')
-rw-r--r--units/arch/halt.service2
-rw-r--r--units/arch/poweroff.service2
-rw-r--r--units/arch/reboot.service2
3 files changed, 3 insertions, 3 deletions
diff --git a/units/arch/halt.service b/units/arch/halt.service
index b1935262f7..dbfc228787 100644
--- a/units/arch/halt.service
+++ b/units/arch/halt.service
@@ -12,7 +12,7 @@ Requires=shutdown.target umount.target
After=shutdown.target umount.target
[Service]
-Type=finish
+Type=oneshot
ValidNoProcess=yes
Environment=RUNLEVEL=0
ExecStart=/etc/rc.shutdown
diff --git a/units/arch/poweroff.service b/units/arch/poweroff.service
index 3d40ba82c2..bd563ba586 100644
--- a/units/arch/poweroff.service
+++ b/units/arch/poweroff.service
@@ -12,7 +12,7 @@ Requires=shutdown.target umount.target
After=shutdown.target umount.target
[Service]
-Type=finish
+Type=oneshot
ValidNoProcess=yes
Environment=RUNLEVEL=0
ExecStart=/etc/rc.shutdown
diff --git a/units/arch/reboot.service b/units/arch/reboot.service
index 37112fe9f3..6bce95d8fd 100644
--- a/units/arch/reboot.service
+++ b/units/arch/reboot.service
@@ -12,7 +12,7 @@ Requires=shutdown.target umount.target
After=shutdown.target umount.target
[Service]
-Type=finish
+Type=oneshot
ValidNoProcess=yes
Environment=RUNLEVEL=6
ExecStart=/etc/rc.shutdown