diff options
author | David Oberhollenzer <goliath@infraroot.at> | 2019-03-28 14:15:39 +0100 |
---|---|---|
committer | David Oberhollenzer <goliath@infraroot.at> | 2019-03-28 15:32:10 +0100 |
commit | ba1270008021470b2e451bce8e75053e0a00f662 (patch) | |
tree | 1a33a447af83e276c7642b73f9c1bcd9fde9416b /initd/main.c | |
parent | 9e7478397a6f3c7bc38be52268e805d5b094eeb2 (diff) |
Add start/stop commands to init socket
Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
Diffstat (limited to 'initd/main.c')
-rw-r--r-- | initd/main.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/initd/main.c b/initd/main.c index 4eb4832..2b1a1cc 100644 --- a/initd/main.c +++ b/initd/main.c @@ -64,6 +64,14 @@ retry: supervisor_answer_status_request(sockfd, &addr, addrlen, rq.arg.status.filter); break; + case EIR_START: + rq.arg.startstop.id = be32toh(rq.arg.startstop.id); + supervisor_start(rq.arg.startstop.id); + break; + case EIR_STOP: + rq.arg.startstop.id = be32toh(rq.arg.startstop.id); + supervisor_stop(rq.arg.startstop.id); + break; } } |