From 3b8085b57f542a5fe162f03301c9c84bf3aa72e7 Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Tue, 12 Feb 2019 13:43:01 +0100 Subject: [PATCH] micrond: use procd for service start Signed-off-by: Florian Eckert Signed-off-by: Matthias Schiffer --- utils/micrond/files/etc/init.d/micrond | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/utils/micrond/files/etc/init.d/micrond b/utils/micrond/files/etc/init.d/micrond index 9e6199040..1eef2ef52 100755 --- a/utils/micrond/files/etc/init.d/micrond +++ b/utils/micrond/files/etc/init.d/micrond @@ -1,18 +1,13 @@ #!/bin/sh /etc/rc.common -# Copyright (C) 2013 Project Gluon START=50 - -SERVICE_USE_PID=1 -SERVICE_WRITE_PID=1 -SERVICE_DAEMONIZE=1 +USE_PROCD=1 CRONDIR=/usr/lib/micron.d -start () { - service_start /usr/sbin/micrond "$CRONDIR" -} - -stop() { - service_stop /usr/sbin/micrond +start_service() { + procd_open_instance + procd_set_param command /usr/sbin/micrond "$CRONDIR" + procd_set_param respawn + procd_close_instance }