Re: How do I ensure xdm only starts after /etc/rc.local is finished?

2009-09-21 Thread Alex Samad
On Mon, Sep 21, 2009 at 11:05:09AM +0800, jida...@jidanni.org wrote:
> How do I ensure xdm only starts after /etc/rc.local is finished?

Can I ask why you want to do that ?

> 
> What do I need to put into
> /etc/init.d/rc.local's
> INIT INFO section?
> 
> Can I put it there or must I put it into /etc/init.d/xdm's?
> 
> I read insserv(8) but it is mishmosh to me.
> 
> 

-- 
"The trial lawyers are very politically powerful. ... But here in Texas we took 
them on and got some good medical -- medical malpractice."

- George W. Bush
08/13/2002
Waco, TX


signature.asc
Description: Digital signature


Re: How do I ensure xdm only starts after /etc/rc.local is finished?

2009-09-20 Thread Andrei Popescu
On Mon,21.Sep.09, 11:05:09, jida...@jidanni.org wrote:
> How do I ensure xdm only starts after /etc/rc.local is finished?
> 
> What do I need to put into
> /etc/init.d/rc.local's
> INIT INFO section?
> 
> Can I put it there or must I put it into /etc/init.d/xdm's?
> 
> I read insserv(8) but it is mishmosh to me.

I think you need to modify /etc/init.d/kdm like this:

- # Required-Start:$local_fs $remote_fs
+ # Required-Start:$local_fs $remote_fs rc.local

Regards,
Andrei
-- 
Offtopic discussions among Debian users and developers:
http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic


signature.asc
Description: Digital signature


Re: How do I ensure xdm only starts after /etc/rc.local is finished?

2009-09-20 Thread Petter Reinholdtsen
[Dan Jacobson]
> How do I ensure xdm only starts after /etc/rc.local is finished?

Well, there are several ways to do this, but I will limit myself to
one of them.  I assume you start with these headers, which are the
current ones in unstable:

### BEGIN INIT INFO
# Provides:  xdm
# Required-Start:$local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Should-Start:  xfs $named slapd hal
# Should-Stop:   xfs $named slapd hal
# Default-Start: 2 3 4 5
# Default-Stop:  0 1 6
### END INIT INFO

### BEGIN INIT INFO
# Provides:  rc.local
# Required-Start:$remote_fs $syslog $all
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Run /etc/rc.local if it exist
### END INIT INFO

You say you want rc.local to run earlier, so you could change its
header to look like this to move it before xdm.

### BEGIN INIT INFO
# Provides:  rc.local
# Required-Start:$remote_fs $syslog
# X-Start-Before:xdm
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Run /etc/rc.local if it exist
### END INIT INFO

Happy hacking,
-- 
Petter Reinholdtsen


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



How do I ensure xdm only starts after /etc/rc.local is finished?

2009-09-20 Thread jidanni
How do I ensure xdm only starts after /etc/rc.local is finished?

What do I need to put into
/etc/init.d/rc.local's
INIT INFO section?

Can I put it there or must I put it into /etc/init.d/xdm's?

I read insserv(8) but it is mishmosh to me.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org