milis/ayarlar/servisler/mbd/init.d/lightdm

55 lines
1.1 KiB
Plaintext
Raw Normal View History

2018-06-03 16:43:33 +02:00
#!/bin/sh
2018-06-04 03:43:15 +02:00
# Begin /etc/rc.d/init.d/lightdm
2018-06-03 16:43:33 +02:00
### BEGIN INIT INFO
2018-06-04 03:43:15 +02:00
# Provides: lightdm
2018-06-03 16:43:33 +02:00
# Required-Start: $local_fs
# Should-Start: $remote_fs $syslog
# Required-Stop: $local_fs
# Should-Stop: $remote_fs $syslog
# Default-Start: 5
# Default-Stop: 0 1 2 3 4 6
2018-06-04 03:43:15 +02:00
# Short-Description: Starts lightdm.
# Description: Starts lightdm daemon.
2018-06-03 16:43:33 +02:00
# X-LFS-Provided-By: BLFS
### END INIT INFO
. /lib/lsb/init-functions
2018-06-04 03:43:15 +02:00
#[ -e /opt/xorg/bin/X ] && . /etc/profile
2018-06-03 16:43:33 +02:00
2018-06-03 18:51:46 +02:00
BIN_FILE="/usr/bin/lightdm"
2018-06-03 16:43:33 +02:00
2018-06-04 03:43:15 +02:00
#$LastChangedBy: bdubbs $
#$Date: 2018-01-05 12:17:22 -0600 (Fri, 05 Jan 2018) $
2018-06-03 16:43:33 +02:00
case $1 in
start)
2018-06-04 03:43:15 +02:00
log_info_msg "Starting lightdm..."
start_daemon $BIN_FILE &
evaluate_retval
;;
2018-06-03 16:43:33 +02:00
stop)
2018-06-04 03:43:15 +02:00
log_info_msg "Stopping lightdm..."
killproc $BIN_FILE
evaluate_retval
;;
2018-06-03 16:43:33 +02:00
restart)
2018-06-04 03:43:15 +02:00
$0 stop
sleep 2
$0 start
;;
2018-06-03 16:43:33 +02:00
status)
statusproc ${BIN_FILE}
;;
*)
2018-06-04 03:43:15 +02:00
echo "usage: $0 [start|stop|restart|status]"
2018-06-03 16:43:33 +02:00
exit 1
2018-06-04 03:43:15 +02:00
;;
2018-06-03 16:43:33 +02:00
esac
# End /etc/rc.d/init.d/lightdm