View previous topic :: View next topic |
Author |
Message |
gcasillo l33t
Joined: 23 Sep 2003 Posts: 739 Location: Cincinnati, Ohio, USA
|
Posted: Mon Apr 12, 2010 12:53 am Post subject: Need sshd & lircd to start faster in boot sequence [SOLV |
|
|
I have a server that also handles MythTV front & backend duties. Unfortunately, KDE and the MythTV frontend start before lircd (required for my USB remote) has a chance to get started. This wasn't always the case. Furthermore, the sshd daemon doesn't start very quickly either. This isn't as big a deal to me, but the delay is rather long in my opinion before I can open a SSH connection to this server.
Is there a way I can tweak my boot sequence in order to get lircd and sshd started after the network comes up, and if so, how?
Thanks!
Last edited by gcasillo on Mon Apr 12, 2010 7:31 pm; edited 1 time in total |
|
Back to top |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
|
Back to top |
|
|
pigeon768 l33t
Joined: 02 Jan 2006 Posts: 683
|
Posted: Mon Apr 12, 2010 6:16 pm Post subject: |
|
|
A better solution than editing the /etc/init.d/ script would be adding rc_before= lines to /etc/conf.d/ files.
For instance, to get sshd loaded before xdm, (xdm is what starts kdm) add the following to /etc/conf.d/sshd: You can read more about it in the "service configuration variables" section of /etc/rc.conf. You'll add similar lines for lircd, refering to whatever the init.d script for mythtv is.
...of course, this assumes you use openrc. If you don't, add relevant lines to the depend={} sections of the init scripts or simply move lircd into the boot runlevel. |
|
Back to top |
|
|
gcasillo l33t
Joined: 23 Sep 2003 Posts: 739 Location: Cincinnati, Ohio, USA
|
Posted: Mon Apr 12, 2010 7:31 pm Post subject: |
|
|
Thank you both for your replies. I'm usually reluctant to tinker with init scripts, but it's nice to have that primer that krinn linked to. Using pigeon768's recommendation for rc_before="xdm" I set lircd, sshd, and mythbackend to start before xdm/kdm kicks off KDE. All is well now! Many thanks! |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|