Em /etc/init.d/networking , você pode ver:
....
force-reload|restart)
if init_is_upstart; then
exit 1
fi
....
E de /lib/lsb/init-functions :
# If the currently running init daemon is upstart, return zero; if the
# calling init script belongs to a package which also provides a native
# upstart job, it should generally exit non-zero in this case.
init_is_upstart()
{
if [ -x /sbin/initctl ] && /sbin/initctl version 2>/dev/null | /bin/grep -q upstart; then
return 0
fi
return 1
}
Ubuntu 14.04 distro usa upstart como init daemon , portanto, quando você executar /etc/init.d/networking restart , ele verificará se o init daemon está upstart em execução ou não. Se for upstart , simplesmente sairá do script.
Nota
No meu Ubuntu 12.04 , não há init_is_upstart em /etc/lsb/init-functions . Talvez tenha sido adicionado na versão mais recente de Ubuntu .