Skip to Content.
Sympa Menu

sm-discuss - [SM-Discuss] wdm init script

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: Pieter Lenaerts <e-type AT cwazy.co.uk>
  • To: sm-discuss AT lists.ibiblio.org
  • Subject: [SM-Discuss] wdm init script
  • Date: Thu, 7 Apr 2005 08:52:01 +0200

hi all,

anyone using wdm?
the init script won't run here.
if I put echo's in all branches of the test, none show up on "telinit run wdm
start", which makes me think the start() function is never run.

any suggestions?

the print_status success, and both silly echo messages were added by me as
checkpoints


#!/bin/bash

PROGRAM=/usr/bin/wdm
RUNLEVEL=5
PROVIDES=display_manager

. /etc/init.d/smgl_init

# overrides default start function, ensuring
# that wdm releases control back to init system.
start ()
{
echo "Starting wdm..."
if [[ -e /usr/bin/wdm ]] ; then
echo "I'm in the if part..."
print_status success
/usr/bin/wdm -config /etc/wdm/wdm-config &
else
echo "I'm in the else part..."
print_status failure
exit 1
fi
}


--
Pieter Lenaerts
Koning Boudewijnlaan 12
B-9840 DE PINTE

0485/189.222

--
Pieter Lenaerts
maintainer of editors and wm's - Sourcemage GNU/linux
http://www.sourcemage.org

e-type AT cwazy.co.uk
MSN: pieter_b52 AT yahoo.com
jabber: e-type AT jabber.org
irc: irc.freenode.net #sourcemage




Archive powered by MHonArc 2.6.24.

Top of Page