Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: Where is /etc/init.d/samba in 10.04?

  1. #1
    Join Date
    Jun 2007
    Beans
    60

    Where is /etc/init.d/samba in 10.04?

    In the old days (9.10) samba service used to be located in /etc/init.d/samba

    Where did it go in 10.04?

    I installed samba using

    Code:
    sudo apt-get install samba smbfs
    and restarted the computer.

    Now, doing

    Code:
    findsmb
    works ok.

    However, if I want to restart the service after editing smb.conf by running

    Code:
    sudo /etc/init.d/samba restart
    it outputs

    sudo: /etc/init.d/samba: command not found
    Then I open a terminal and navigate to /etc/init.d/ and I can't see samba there.

    However, samba is working ok and identifying all computers in my home network.

    Where did the service go then?

    Thank you!

  2. #2
    Join Date
    Dec 2009
    Beans
    6,409

    Re: Where is /etc/init.d/samba in 10.04?

    Two things have happened - "upstart" has replaced the old way of starting services and the "samba" service has been replaced by the old way of separating the smbd and nmbd daemons.

    So the way you need to restart samba is now this way:

    sudo service smbd restart
    sudo service nmbd restart

  3. #3
    Join Date
    Jun 2007
    Beans
    60

    Re: Where is /etc/init.d/samba in 10.04?

    Thank you.

    It shows then now.

  4. #4
    Join Date
    Dec 2007
    Beans
    18

    Re: Where is /etc/init.d/samba in 10.04?

    Quote Originally Posted by Morbius1 View Post
    Two things have happened - "upstart" has replaced the old way of starting services and the "samba" service has been replaced by the old way of separating the smbd and nmbd daemons.

    So the way you need to restart samba is now this way:

    sudo service smbd restart
    sudo service nmbd restart

    now will they make a fix or patch for webmin
    Access control violation : /etc/init.d/samba start failed

  5. #5
    Join Date
    Dec 2009
    Beans
    6,409

    Re: Where is /etc/init.d/samba in 10.04?

    Quote Originally Posted by pupEOkami View Post
    now will they make a fix or patch for webmin
    Access control violation : /etc/init.d/samba start failed
    According to this it's in the next release of webmin:
    http://sourceforge.net/tracker/index...57&atid=117457

    You know when I originally posted this:
    Two things have happened - "upstart" has replaced the old way of starting services and the "samba" service has been replaced by the old way of separating the smbd and nmbd daemons.

    So the way you need to restart samba is now this way:

    sudo service smbd restart
    sudo service nmbd restart
    I was unaware that there was a third change to all of this - just to aggravate and confuse those of us not on the "need to know" mailing list:

    Back in the good old days ( 6 months to a year ago ) if smbd was stopped or not started and you did a "sudo service smbd restart" it would start the daemon. Not any longer:
    sudo service smbd stop
    smbd stop/waiting
    sudo service smbd restart
    restart: Unknown instance:
    The only logic I can think of for this change is that it is now grammatically correct - you can't restart something that hasn't started So if smbd is stopped you need to do a "sudo service smbd start"
    Last edited by Morbius1; June 5th, 2010 at 01:30 PM.

  6. #6
    Join Date
    Apr 2009
    Location
    Argentina, Buenos aires (
    Beans
    251
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Where is /etc/init.d/samba in 10.04?

    why did they do that? why confuse ppl?
    is there any reasonable explanation?

  7. #7
    Join Date
    Jan 2006
    Beans
    1

    Re: Where is /etc/init.d/samba in 10.04?

    Somebody needs to update the docs. The 10.04 server guide still has "/etc/init.d/samba restart" in its documentation for samba. Very confusing.

    also, "restart smbd" works. This is all that I have needed after a change to the smb.conf file.

    edit: already reported to docs bug teacker. Hopefully it will get updated soon.
    Last edited by Jml79; July 30th, 2010 at 09:02 PM. Reason: addition

  8. #8
    Join Date
    Apr 2009
    Location
    Argentina, Buenos aires (
    Beans
    251
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Where is /etc/init.d/samba in 10.04?

    how can i report that bug without hassle?

  9. #9
    Join Date
    Aug 2010
    Beans
    1

    Re: Where is /etc/init.d/samba in 10.04?

    Ubuntu 10.04 server ed.
    Samba 3.4.7

    Quote Originally Posted by Morbius1 View Post
    Two things have happened - "upstart" has replaced the old way of starting services and the "samba" service has been replaced by the old way of separating the smbd and nmbd daemons.

    So the way you need to restart samba is now this way:

    sudo service smbd restart
    sudo service nmbd restart
    When I try the smbd restart I receive "restart: Unknown instance:"

    I'm new to this and not sure what in the world I'm doing (including did I post in the wrong place since this thread is labeled "Solved"?). I've tried configuring it via CLI and also Webmin. But as mentioned above, restarting Samba in Webmin does not work.
    Last edited by matthewdial; August 11th, 2010 at 04:45 AM.

  10. #10
    Join Date
    Dec 2009
    Beans
    6,409

    Re: Where is /etc/init.d/samba in 10.04?

    Quote Originally Posted by matthewdial View Post
    Ubuntu 10.04 server ed.
    Samba 3.4.7
    When I try the smbd restart I receive "restart: Unknown instance:"
    You didn't read the rest of my posts.

    If smbd is already running and you want to restart samba:
    Code:
    sudo service smbd restart
    If smbd is currently not running:
    Code:
    sudo service smbd start
    If you use "restart" when smbd in not running you will get the error message:
    "restart: Unknown instance:"
    All of this is not as it used to be. Before you could use "restart" to start a service that is not running. They must have hired a developer that is very persnickety about grammar - you can't restart something that hasn't started

Page 1 of 2 12 LastLast

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
  •