From 61b2c378aea81c515d02436364f90e4d597d4266 Mon Sep 17 00:00:00 2001 From: nbd Date: Sat, 22 Dec 2012 18:56:06 +0000 Subject: procd: add initial implementation procd is the new OpenWrt process management daemon. It keeps track of processes started from init scripts (via ubus calls), and can suppress redundant service start/restart requests when the config/environment has not changed. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34865 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/procd/files/procd.init | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 package/procd/files/procd.init (limited to 'package/procd/files/procd.init') diff --git a/package/procd/files/procd.init b/package/procd/files/procd.init new file mode 100644 index 000000000..3df5f48e6 --- /dev/null +++ b/package/procd/files/procd.init @@ -0,0 +1,19 @@ +#!/bin/sh /etc/rc.common + +START=11 + +start_stop() { + start-stop-daemon $1 -b -m -p /var/run/procd.pid -x /sbin/procd +} + +start() { + start_stop -S +} + +reload() { + return +} + +stop() { + start_stop -K +} -- cgit v1.2.3