summaryrefslogtreecommitdiff
path: root/src/service.h
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 /src/service.h
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 'src/service.h')
-rw-r--r--src/service.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/service.h b/src/service.h
index 725e2135f1..81401ac387 100644
--- a/src/service.h
+++ b/src/service.h
@@ -58,7 +58,7 @@ typedef enum ServiceRestart {
typedef enum ServiceType {
SERVICE_SIMPLE, /* we fork and go on right-away (i.e. modern socket activated daemons) */
SERVICE_FORKING, /* forks by itself (i.e. traditional daemons) */
- SERVICE_FINISH, /* we fork and wait until the program finishes (i.e. programs like fsck which run and need to finish before we continue) */
+ SERVICE_ONESHOT, /* we fork and wait until the program finishes (i.e. programs like fsck which run and need to finish before we continue) */
SERVICE_DBUS, /* we fork and wait until a specific D-Bus name appears on the bus */
SERVICE_NOTIFY, /* we fork and wait until a daemon sends us a ready message with sd_notify() */
_SERVICE_TYPE_MAX,