lightdm-servis

This commit is contained in:
milisbir 2018-06-03 16:43:33 +02:00
parent 4c22da775e
commit d46c69ce60
2 changed files with 75 additions and 0 deletions

View File

@ -317,6 +317,16 @@ kur-lxdm: dizinleri-olustur
ln -sf ../init.d/lxdm ${EXTDIR}/rc.d/rc5.d/S95lxdm
ln -sf ../init.d/lxdm ${EXTDIR}/rc.d/rc6.d/K05lxdm
kur-lightdm: dizinleri-olustur
install -m ${MODE} mbd/init.d/lightdm ${EXTDIR}/rc.d/init.d/
ln -sf ../init.d/lightdm ${EXTDIR}/rc.d/rc0.d/K05lightdm
ln -sf ../init.d/lightdm ${EXTDIR}/rc.d/rc1.d/K05lightdm
ln -sf ../init.d/lightdm ${EXTDIR}/rc.d/rc2.d/K05lightdm
ln -sf ../init.d/lightdm ${EXTDIR}/rc.d/rc3.d/K05lightdm
ln -sf ../init.d/lightdm ${EXTDIR}/rc.d/rc4.d/K05lightdm
ln -sf ../init.d/lightdm ${EXTDIR}/rc.d/rc5.d/S95lightdm
ln -sf ../init.d/lightdm ${EXTDIR}/rc.d/rc6.d/K05lightdm
kur-mdm: dizinleri-olustur
install -m ${MODE} mbd/init.d/mdm ${EXTDIR}/rc.d/init.d/
ln -sf ../init.d/mdm ${EXTDIR}/rc.d/rc0.d/K05mdm
@ -921,6 +931,16 @@ sil-lxdm:
rm -f ${EXTDIR}/rc.d/rc5.d/S95lxdm
rm -f ${EXTDIR}/rc.d/rc6.d/K05lxdm
sil-lightdm:
rm -f ${EXTDIR}/rc.d/init.d/lightdm
rm -f ${EXTDIR}/rc.d/rc0.d/K05lightdm
rm -f ${EXTDIR}/rc.d/rc1.d/K05lightdm
rm -f ${EXTDIR}/rc.d/rc2.d/K05lightdm
rm -f ${EXTDIR}/rc.d/rc3.d/K05lightdm
rm -f ${EXTDIR}/rc.d/rc4.d/K05lightdm
rm -f ${EXTDIR}/rc.d/rc5.d/S95lightdm
rm -f ${EXTDIR}/rc.d/rc6.d/K05lightdm
sil-mdm:
rm -f ${EXTDIR}/rc.d/init.d/mdm
rm -f ${EXTDIR}/rc.d/rc0.d/K05mdm

View File

@ -0,0 +1,55 @@
#!/bin/sh
# Begin /etc/rc.d/init.d/lxdm
### BEGIN INIT INFO
# Provides: lxdm
# 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
# Short-Description: Starts lxdm.
# Description: Starts lxdm daemon.
# X-LFS-Provided-By: BLFS
### END INIT INFO
. /lib/lsb/init-functions
BIN_FILE="/usr/sbin/lightdm"
#$LastChangedBy: ken $
#$Date: 2014-09-11 17:27:58 -0500 (Thu, 11 Sep 2014) $
case $1 in
start)
log_info_msg "Yerel ayarlar eklendi..."
yerel_ayar
log_info_msg "Starting lightdm..."
start_daemon $BIN_FILE -d
evaluate_retval
;;
stop)
log_info_msg "Stopping lightdm..."
killproc $BIN_FILE
evaluate_retval
;;
restart)
$0 stop
sleep 2
$0 start
;;
status)
statusproc ${BIN_FILE}
;;
*)
echo "usage: $0 [start|stop|restart|status]"
exit 1
;;
esac
# End /etc/rc.d/init.d/lightdm