Skip to Content.
Sympa Menu

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

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: Arwed von Merkatz <v.merkatz AT gmx.net>
  • To: sm-discuss AT lists.ibiblio.org
  • Subject: Re: [SM-Discuss] wdm init script
  • Date: Thu, 7 Apr 2005 09:05:41 +0200

On Thu, Apr 07, 2005 at 08:52:01AM +0200, Pieter Lenaerts wrote:
> 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

Do you have wdm configured as display_manager in
/etc/sysconfig/facilities? Otherwise simpleinit won't run it at all as
only the configure provider of a facility gets used.

>
> #!/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
> _______________________________________________
> SM-Discuss mailing list
> SM-Discuss AT lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/sm-discuss
>

--
Arwed v. Merkatz Source Mage GNU/Linux developer
http://www.sourcemage.org




Archive powered by MHonArc 2.6.24.

Top of Page