| View previous topic :: View next topic |
| Author |
Message |
eddieparker Tux's lil' helper

Joined: 09 Sep 2004 Posts: 141
|
Posted: Mon Apr 02, 2012 2:50 am Post subject: How to ensure all services are running correctly? |
|
|
This is likely a linux newb question - apologies, it's just a whole in my knowledge.
Occasionally I'll restart something, like net.eth1 (my external WAN interface), and it'll shut down everything dependent on it (squid, bitlbee, dnsmasq, etc.), which is understandable. But then, if net.eth1 fails to start correctly, nothing else loads. So far, so good.
But then when I fix the net.eth1 problem (most recent case, my network cable became unplugged... whoops), I don't know how I can restart all the services that were dependent on net.eth1, but are currently stopped.
Should I do something like 'init 3' to ensure that all my services are running? is there a better way?
Thanks!
-e- |
|
| Back to top |
|
 |
hedmo l33t


Joined: 29 Aug 2009 Posts: 829 Location: halmstad
|
Posted: Mon Apr 02, 2012 3:53 am Post subject: |
|
|
eddieparker
if you talking about "boot" .all that depends on it should restart to for example if i restart /etc/init.d/xdm restart.
kdm will restart to .like if you /etc/init.d/net.eth1 restart ,dhcpcd will restart to but I recommend you to.
/etc/init.d/net.eth1 stop
/etc/init.d/net.eth1 start
other programs should just start working again when they have network again.
rc-status can be something to check to see if some service is down.
Regards hedmo |
|
| Back to top |
|
 |
eddieparker Tux's lil' helper

Joined: 09 Sep 2004 Posts: 141
|
Posted: Mon Apr 02, 2012 3:58 am Post subject: |
|
|
I don't run xdm - I'm just on console (headless machine).
I find that running net.eth1 stop followed by net.eth1 restart doesn't bring up dependent tasks, and rc-status show shows a bunch of stopped services.
I usually resort to manually 'starting' those that show up, or if I'm really inventive I make a mixture of awk and xargs to restart anything that's stopped, but I have a feeling there's likely an inbuilt tool to ease my pain... |
|
| 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
|
|