Results 1 to 3 of 3

Thread: NetworkManager starting/stopping

  1. #1
    Join Date
    Jun 2012
    Beans
    310

    NetworkManager starting/stopping

    I've been trying to start/stop and check NetworkManager status in Trusty using the old fashion /etc/init.d route and also upstart, to my surprise neither is working: although I can see a traditional network-manager.conf script in /etc/init containing the usual lines
    Code:
    start on (local-filesystems           and started dbus           and static-network-up) stop on stopping dbus
    there is no correspondent script in /etc/init.d, whilst the upstart command sudo NetworkManager status returns this
    Code:
     NetworkManager is already running (pid 646)
    so what process is actually in control of NetworkManager ?
    Last edited by cogset; September 3rd, 2015 at 09:13 PM.

  2. #2
    Join Date
    Jul 2013
    Location
    Wisconsin
    Beans
    4,952

    Re: NetworkManager starting/stopping

    In Trusty, NM is started by that Upstart job (/etc/init/network-manager.conf), not sysvinit (/etc/init.d/).

    start on (local-filesystems and started dbus and static-network-up)
    stop on stopping dbus
    NM is automatically started by init when those three conditions are satisfied.

    There are several ways to check NM's status.
    One is the nm-applet.
    Another is the 'service' command. Try 'service network-manager status'
    Another is the 'nmcli' command. See 'man nmcli'
    Another, more appropriate for other applications, is dbus. Some examples.

  3. #3
    Join Date
    Jun 2012
    Beans
    310

    Re: NetworkManager starting/stopping

    Quote Originally Posted by ian-weisser View Post

    There are several ways to check NM's status.
    One is the nm-applet.
    Another is the 'service' command. Try 'service network-manager status'
    Another is the 'nmcli' command. See 'man nmcli'
    Another, more appropriate for other applications, is dbus. Some examples.
    Thanks, the nm-applet is not what I was after (I wanted to place a command in rc.local to disable networking on start up in order to re-enble it later on manually when I do actually need it) .

    As for service network-manager status, no joy either, it yields the same result as status NetworkManager status.

    Finally, nmcli works nicely and allows me to disable the network at boot and enable it later on.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •