linuxconf Howto/FAQ

Howto index

How does Linuxconf know a service must be restart ?

Linuxconf is using two strategies. One for distribution which are Linuxconf aware and one for the others.

The network script (/etc/rc.d/init.d) is a little special. For the network script, it uses the tag "probe: true". This tells Linuxconf to let the script finds out by itself if it needs a restart or not (restart of whatever). When probe is true, Linuxconf calls the script with the probe argument

        /etc/rc.d/init.d/network probe

this normally prints nothing when everything is up to date. If something is not right, the script output simply "reload". Linuxconf picks this string and if you choose to activate the changes, it calls the script with this string.

Now, finding out if something has to reconfigured is not trivial, so the network script is using specials Linuxconf command lines to find out. They are:

  • linuxconf --hint netdev [ interface ]
  • linuxconf --hint routing
  • linuxconf --hint ipalias [ interface ]