aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/slim/slim/rc.slim
blob: bf638575e2a6adb9b0ddfc561686d7dcd122acfd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#! /bin/sh
### BEGIN INIT INFO
# Provides:          slim
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: SLiM Display Manager (and wrapper script)
# Description:       init script for the SLiM Display Manager
### END INIT INFO

case $1 in
start)
	/usr/bin/slim -d &
	;;
stop)
	killall /usr/bin/slim
	;;
restart)
	$0 stop
	sleep 2
	$0 start
	;;
*)
	echo "usage: $0 [start|stop|restart]"
	;;
esac

# End of file