Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:dmitry_serpokryl:E
entrance
entrance.init
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File entrance.init of Package entrance
#!/bin/sh # # Originally based on: gdm /etc/init.d script on debian # # chkconfig: - 99 01 # description: Entrance Display Manager # probe: true # /etc/init.d/entrance # ### BEGIN INIT INFO # Provides: entrance # Required-Start: $local_fs # Required-Stop: $null # Should-Start: ypbind hwscan $syslog gpm # Should-Stop: $null # Required-Stop: # Default-Start: 5 # Default-Stop: # Description: Entrance Display Manager ### END INIT INFO set -e # HEED_DEFAULT_DISPLAY_MANAGER to "false." PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/bin DAEMON=/usr/sbin/entranced PIDFILE=/var/run/entrance/entranced.pid test -x $DAEMON || exit 0 case "$1" in start) if [ "`/sbin/chkconfig earlyxdm | awk -F\ '{ print $2 }' `" == "on" ] ; then /sbin/chkconfig earlyxdm off && echo "earlyxdm is off" || echo "earlyxdm is off" fi if [ "`/sbin/chkconfig gdm | awk -F\ '{ print $2 }' `" == "on" ] ; then /sbin/chkconfig gdm off && echo "gdm is off" || echo "gdm is off" fi if [ "`/sbin/chkconfig xdm | awk -F\ '{ print $2 }' `" == "on" ] ; then /sbin/chkconfig xdm off && echo "xdm is off" || echo "xdm is off" fi echo -n "Becoming entranced: entrance" (cd /etc/pam.d ; for i in gdm kdm wdm xdm ; do test -s $i && cp -a $i entrance && break ; done) set +e if pam_getenv -l PATH; then export PATH=`pam_getenv -l PATH` fi set -e $DAEMON echo "." ;; stop) echo -n "Stopping Entrance: entrance" if [ "`/sbin/chkconfig earlyxdm | awk -F\ '{ print $2 }' `" == "on" ] ; then /sbin/chkconfig earlyxdm off && echo "earlyxdm is off" || echo "earlyxdm is off" fi if [ "`/sbin/chkconfig gdm | awk -F\ '{ print $2 }' `" == "on" ] ; then /sbin/chkconfig gdm off && echo "gdm is off" || echo "gdm is off" fi if [ "`/sbin/chkconfig xdm | awk -F\ '{ print $2 }' `" == "on" ] ; then /sbin/chkconfig xdm off && echo "xdm is off" || echo "xdm is off" fi if [ -f $PIDFILE ]; then kill -9 `cat $PIDFILE` ; fi kill -9 `pgrep entranced ` kill -9 `pgrep entrance ` kill -9 `pgrep X ` echo "." ;; restart) $0 stop $0 start ;; *) echo "Usage: $0 {start|stop|restart}" exit 1 ;; esac exit 0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor