micrond: use procd for service start
authorFlorian Eckert <fe@dev.tdt.de>
Tue, 12 Feb 2019 12:43:01 +0000 (13:43 +0100)
committerMatthias Schiffer <mschiffer@universe-factory.net>
Mon, 22 Apr 2019 17:32:40 +0000 (19:32 +0200)
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
utils/micrond/files/etc/init.d/micrond

index 9e619904000f8ad94db7d4395a2063584e0b5bc6..1eef2ef5215b593a3a7b9327296cf388ffae9483 100755 (executable)
@@ -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
 }