package/base-files: enhance & cleanup service wrappers
authornico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 8 Nov 2011 22:47:49 +0000 (22:47 +0000)
committernico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 8 Nov 2011 22:47:49 +0000 (22:47 +0000)
commita12802298d5e41b5f411d9f54e6ab1454569ae5a
tree6312682306223cd6f52c60baade8689255ed6c85
parent1454b296037e35217e8d2736d133cca49e89278b
package/base-files: enhance & cleanup service wrappers

 * add service_check function for checking if a process is alive
 * add service_signal for sending arbitrary signals to a process
 * change service_stop to send a TERM signal first, wait for the process to die and send a KILL signal if it doen't
 * have service_kill print a warning on STDERR stating it has been deprecated

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28865 3c298f89-4303-0410-b956-a3cf2f4a3e73
package/base-files/Makefile
package/base-files/files/lib/functions.sh