Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Prevent retstarting services closed by NetworkManager
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
GOS
Tux's lil' helper
Tux's lil' helper


Joined: 09 Sep 2010
Posts: 93
Location: Germany

PostPosted: Sun Jan 10, 2016 2:01 pm    Post subject: Prevent retstarting services closed by NetworkManager Reply with quote

Hello,

on my notebook I use NetworkManager and have two connections called "Internet" and "Samba". Via a dispatcher-script "Samba" starts the samba-service while "Internet" starts the tor- and the ntpd-service. Additionally the services are stopped if the related connection is lost or closed.

This worked great but now it is broken.

I made some tests and saw that now the services are stopped if all connections are lost or closed before my dispatcher script runs. The problem is then that the automatically stopped services restart if any connection comes up again. This leads to situations where the sumba-service runs with "Internet" and so on.

Deleting the "need net" line from the init-scripts of the services (samba ...) solved the problem and now it works again but I think that this is more a workaround then a solution.

To summarize: Have anyone out here a clue how to prevent the reactivation of services which were automatically stopped while NetworkManager lost its connections?

Best regards
GOS
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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