mirror of
https://github.com/troglobit/finit.git
synced 2026-10-01 05:22:48 +07:00
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>
15 lines
203 B
Bash
Executable File
15 lines
203 B
Bash
Executable File
#!/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
|
|
|