Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to ensure all services are running correctly?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
eddieparker
Tux's lil' helper
Tux's lil' helper


Joined: 09 Sep 2004
Posts: 141

PostPosted: Mon Apr 02, 2012 2:50 am    Post subject: How to ensure all services are running correctly? Reply with quote

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
View user's profile Send private message
hedmo
l33t
l33t


Joined: 29 Aug 2009
Posts: 829
Location: halmstad

PostPosted: Mon Apr 02, 2012 3:53 am    Post subject: Reply with quote

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
View user's profile Send private message
eddieparker
Tux's lil' helper
Tux's lil' helper


Joined: 09 Sep 2004
Posts: 141

PostPosted: Mon Apr 02, 2012 3:58 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
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