aboutsummaryrefslogtreecommitdiffstats
path: root/service
blob: 923f33aedd41e0bc34c7cf2e9f3f856a45a18c1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

if [ -z "$1" ]; then
	echo "no service specified" >&2
	exit 1
elif [ -x "/etc/rc.d/init.d/$1" ]; then
	service=$1
	shift
	"/etc/rc.d/init.d/$service" $*
else
	echo "$1: unrecognized service" >&2
	exit 1
fi