mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 19:14:30 +04:00
micrond: use procd for service start
Signed-off-by: Florian Eckert <fe@dev.tdt.de> Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
This commit is contained in:
committed by
Matthias Schiffer
parent
ad697d867e
commit
3b8085b57f
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user