9 |
#%before: |
#%before: |
10 |
#%after: |
#%after: |
11 |
|
|
12 |
# $Header: /home/cvsd/alx-cvs/alx-src/alxconfig-ng/init.d/xdm-alx,v 1.2 2005-04-12 20:45:55 niro Exp $ |
# $Header: /home/cvsd/alx-cvs/alx-src/alxconfig-ng/init.d/xdm-alx,v 1.3 2005-04-13 16:10:54 niro Exp $ |
13 |
|
|
14 |
source /etc/sysconfig/rc |
source /etc/sysconfig/rc |
15 |
source $rc_functions |
source $rc_functions |
30 |
echo -e ${COLOREDSTAR}"Stopping single X11 session ..." |
echo -e ${COLOREDSTAR}"Stopping single X11 session ..." |
31 |
if [ -n "$(pidof xinit)" ] |
if [ -n "$(pidof xinit)" ] |
32 |
then |
then |
33 |
|
CUR_VT=$(fgconsole) |
34 |
start-stop-daemon --stop --exec /usr/X11R6/bin/xinit |
start-stop-daemon --stop --exec /usr/X11R6/bin/xinit |
35 |
evaluate_retval |
evaluate_retval |
36 |
|
chvt ${CUR_VT} |
37 |
else |
else |
38 |
# process not running; print a message |
# process not running; print a message |
39 |
print_status warning not_running |
print_status warning not_running |