This commit is contained in:
milisbir 2018-06-04 03:43:15 +02:00
parent 19b54c65b4
commit 1b5b3798a4
1 changed files with 21 additions and 22 deletions

43
ayarlar/servisler/mbd/init.d/lightdm Normal file → Executable file
View File

@ -1,55 +1,54 @@
#!/bin/sh #!/bin/sh
# Begin /etc/rc.d/init.d/lxdm # Begin /etc/rc.d/init.d/lightdm
### BEGIN INIT INFO ### BEGIN INIT INFO
# Provides: lxdm # Provides: lightdm
# Required-Start: $local_fs # Required-Start: $local_fs
# Should-Start: $remote_fs $syslog # Should-Start: $remote_fs $syslog
# Required-Stop: $local_fs # Required-Stop: $local_fs
# Should-Stop: $remote_fs $syslog # Should-Stop: $remote_fs $syslog
# Default-Start: 5 # Default-Start: 5
# Default-Stop: 0 1 2 3 4 6 # Default-Stop: 0 1 2 3 4 6
# Short-Description: Starts lxdm. # Short-Description: Starts lightdm.
# Description: Starts lxdm daemon. # Description: Starts lightdm daemon.
# X-LFS-Provided-By: BLFS # X-LFS-Provided-By: BLFS
### END INIT INFO ### END INIT INFO
. /lib/lsb/init-functions . /lib/lsb/init-functions
#[ -e /opt/xorg/bin/X ] && . /etc/profile
BIN_FILE="/usr/bin/lightdm" BIN_FILE="/usr/bin/lightdm"
#$LastChangedBy: ken $ #$LastChangedBy: bdubbs $
#$Date: 2014-09-11 17:27:58 -0500 (Thu, 11 Sep 2014) $ #$Date: 2018-01-05 12:17:22 -0600 (Fri, 05 Jan 2018) $
case $1 in case $1 in
start) start)
log_info_msg "Yerel ayarlar eklendi..." log_info_msg "Starting lightdm..."
yerel_ayar start_daemon $BIN_FILE &
log_info_msg "Starting lightdm..." evaluate_retval
start_daemon $BIN_FILE -d ;;
evaluate_retval
;;
stop) stop)
log_info_msg "Stopping lightdm..." log_info_msg "Stopping lightdm..."
killproc $BIN_FILE killproc $BIN_FILE
evaluate_retval evaluate_retval
;; ;;
restart) restart)
$0 stop $0 stop
sleep 2 sleep 2
$0 start $0 start
;; ;;
status) status)
statusproc ${BIN_FILE} statusproc ${BIN_FILE}
;; ;;
*) *)
echo "usage: $0 [start|stop|restart|status]" echo "usage: $0 [start|stop|restart|status]"
exit 1 exit 1
;; ;;
esac esac
# End /etc/rc.d/init.d/lightdm # End /etc/rc.d/init.d/lightdm