diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-12-22 18:56:06 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-12-22 18:56:06 +0000 |
commit | 56e6c5df09c5e58a7546d88e2927a27e6d7803d6 (patch) | |
tree | 37ea2875e73c2f0fc4ef93e8aa0adb02c7f8617f /package/procd/files/procd.init | |
parent | 16e46a4dd8efe1fc16c8b11aa11453f6e5b3383e (diff) | |
download | upstream-56e6c5df09c5e58a7546d88e2927a27e6d7803d6.tar.gz upstream-56e6c5df09c5e58a7546d88e2927a27e6d7803d6.tar.bz2 upstream-56e6c5df09c5e58a7546d88e2927a27e6d7803d6.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.
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.init | 19 |
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 +} |