mirror of
https://github.com/troglobit/finit.git
synced 2026-10-19 11:09:35 +00:00
Add support for adding/removing services from /etc/finit.d at runtime.
This patch adds support for adding and removing services from Finit at runtime. Configuration file stanzas for service, run and task may now be written to files in /etc/finit.d/*.conf, using the exact same syntax as before in /etc/finit.conf. When a file is added, removed or modified the user may simply SIGHUP Finit (PID 1) to activate the changes. Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
24051ab2fb
commit
687f52b0b5
10 files changed
+454
-233
No files matched your search
@@ -179,7 +179,7 @@ int inetd_respawn(pid_t pid)
|
||||
{
|
||||
svc_t *svc = svc_find_by_pid(pid);
|
||||
|
||||
if (svc && SVC_CMD_INETD == svc->type) {
|
||||
if (svc && SVC_TYPE_INETD == svc->type) {
|
||||
inetd_t *inetd = &svc->inetd;
|
||||
|
||||
svc->pid = 0;
|
||||
@@ -481,7 +481,7 @@ int inetd_init(inetd_t *inetd, void *arg, char *ifname, char *port)
|
||||
inetd_filter_t *filter;
|
||||
|
||||
/* Skip non-inetd services */
|
||||
if (svc->type != SVC_CMD_INETD)
|
||||
if (svc->type != SVC_TYPE_INETD)
|
||||
continue;
|
||||
|
||||
/* Skip ourselves */
|
||||
|
||||
Reference in new issue
Block a user