diff options
| author | William Hubbs <w.d.hubbs@gmail.com> | 2017-04-29 09:41:07 -0500 | 
|---|---|---|
| committer | William Hubbs <w.d.hubbs@gmail.com> | 2017-04-29 09:41:07 -0500 | 
| commit | 5de3798afc55ce147e65926f863ec9c9cef60e79 (patch) | |
| tree | a7c7473675e40fd6e515e0c3cd085d43d1627e5d /src/rc | |
| parent | 6ac094a59cf7b51d8527af15b07feca707a635c8 (diff) | |
| download | openrc-5de3798afc55ce147e65926f863ec9c9cef60e79.tar.xz | |
supervise-daemon: mark the service started when the supervisor is active
Diffstat (limited to 'src/rc')
| -rw-r--r-- | src/rc/supervise-daemon.c | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rc/supervise-daemon.c b/src/rc/supervise-daemon.c index 57d55194..5636eaab 100644 --- a/src/rc/supervise-daemon.c +++ b/src/rc/supervise-daemon.c @@ -694,6 +694,10 @@ int main(int argc, char **argv)  		fprintf(fp, "%d\n", getpid());  		fclose(fp); +		if (svcname) +			rc_service_daemon_set(svcname, exec, +									(const char * const *) argv, pidfile, true); +  		/*  		 * Supervisor main loop  		 */ @@ -718,10 +722,6 @@ int main(int argc, char **argv)  			}  		} -		if (svcname) -			rc_service_daemon_set(svcname, exec, -									(const char * const *) argv, pidfile, true); -  		exit(EXIT_SUCCESS);  	} else if (child_pid == 0)  		child_process(exec, argv);  | 
