mirror of
https://github.com/troglobit/finit.git
synced 2026-10-30 12:50:34 +00:00
Move helper script 'service' to contrib/
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
82172e65fa
commit
b1ea279940
1 file changed
Executable
+14
@@ -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
|
||||
|
||||
Reference in new issue
Block a user