Add simple service script for SysV init compat.

This patch adds a simple `service <script> <stop|start|reload|restart>`
script for for SysV init compatibility.  Very common with users of the
Ubuntu upstart init as well.

Also, fixed `make uninstall` for plugins.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2015-09-19 22:04:26 +02:00
1 parent 125fc661a3
commit eec166a9eb
2 files changed
+30 -15

No files matched your search

Executable
+14
View File
@@ -0,0 +1,14 @@
#!/bin/sh
if [ $# -eq 0 ]; then
initctl show
exit 0
fi
if [ $# -lt 2 -o $# -gt 2 ]; then
echo "Usage: service [job# | name] <stop | start | restart | reload>"
exit 1
fi
initctl $2 $1