Files
finit/contrib/service
T
2017-06-05 01:00:40 +02:00

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