summaryrefslogtreecommitdiffstats
path: root/sysutils/idled/files/idled.sh
blob: 880e47162941bcc1515fc48aeb39b9617294e180 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
case "$1" in
	start)
		/usr/local/libexec/idled
		echo -n ' idled'
		;;
	stop)
		killall -TERM idled
		echo "idled stopped"
		;;
	restart)
		killall -TERM idled
		/usr/local/libexec/idled
		echo "idled restarted"
		;;
	-h)
		echo "Usage: `basename $0` { start | stop | restart }"
		;;
	*)
		/usr/local/libexec/idled
		echo -n ' idled'
		;;
esac
OpenPOWER on IntegriCloud