aboutsummaryrefslogtreecommitdiffstats
path: root/package/procd/files/procd.init
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-12-22 18:56:06 +0000
committerFelix Fietkau <nbd@openwrt.org>2012-12-22 18:56:06 +0000
commit606173432325a828bd55744857cbfd690ad9c4cf (patch)
tree933b0c1821ed2fff5e58f4d6649dff1399005e3c /package/procd/files/procd.init
parentb0c855253bee73b431ae150b4ff4aa315bca73b7 (diff)
downloadupstream-606173432325a828bd55744857cbfd690ad9c4cf.tar.gz
upstream-606173432325a828bd55744857cbfd690ad9c4cf.tar.bz2
upstream-606173432325a828bd55744857cbfd690ad9c4cf.zip
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. SVN-Revision: 34865
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 0000000000..3df5f48e60
--- /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
+}