Add service/task name config option

Allows the service/task name derived from the binary to be
overridden with a custom name.

Example:
    service name:dhcpd [2] /usr/sbin/udhcpd -f -- DHCP Server

Signed-off-by: Robert Andersson <robert.m.andersson@se.atlascopco.com>
This commit is contained in:
Robert Andersson committed 2018-10-22 12:51:58 +02:00
1 parent 33fd6f0049
commit f2cab53e55
6 files changed
+34 -24

No files matched your search

+1
View File
@@ -104,6 +104,7 @@ typedef struct svc {
int sighup; /* This service supports SIGHUP :) */
svc_block_t block; /* Reason that this service is currently stopped */
char cond[MAX_COND_LEN];
char name[MAX_ARG_LEN];
/* Counters */
char once; /* run/task, (at least) once per runlevel */