procd: service: Support writing pidfiles
authorKarl Palsson <karlp@remake.is>
Wed, 2 Mar 2016 14:47:06 +0000 (14:47 +0000)
committerJohn Crispin <blogic@openwrt.org>
Tue, 8 Mar 2016 23:09:35 +0000 (00:09 +0100)
commitb12bb150ed38a4409bef5127c77b060ee616b860
treec40b76b9fcb87723f13635089bf55f05cf9c9cd4
parentad3ddbf04850a9ab229e21b70bf637090b33bf00
procd: service: Support writing pidfiles

Use the "pidfile" attribute of a service to decide whether to write a
pidfile or not.

Files are removed on stop/restart, and correctly created if the config
has changed.

Signed-off-by: Karl Palsson <karlp@etactica.com>
service/instance.c
service/instance.h