summaryrefslogtreecommitdiffstats
path: root/package/procd/files/procd.init
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-12-22 18:56:06 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-12-22 18:56:06 +0000
commit61b2c378aea81c515d02436364f90e4d597d4266 (patch)
tree37ea2875e73c2f0fc4ef93e8aa0adb02c7f8617f /package/procd/files/procd.init
parentcf8647e80325320bd9663a7091d2b51159298479 (diff)
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
Diffstat (limited to 'package/procd/files/procd.init')
-rw-r--r--package/procd/files/procd.init19
1 files changed, 19 insertions, 0 deletions
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
+}