Results 1 to 10 of 10

Thread: start, stop and restart samba 4.1 service in opensuse 13.1 64 bit

  1. #1
    Join Date
    Jun 2008
    Location
    Managua, Nicaragua
    Posts
    417

    Default start, stop and restart samba 4.1 service in opensuse 13.1 64 bit

    I want to know how stop, start, restart the samba service in samba 4.1 as a DC, in the samba how to says that to start the service you just type samba as root, but what about if you want to restart the service, or stop it and start it again?

    I asked this in the samba mail list and these are the answers

    https://lists.samba.org/archive/samb...er/177290.html

    can anybody post an example script for opensuse 13.1 64 bit and samba 4.1.2?

    how can I use this script to stop or restart the service without having to restart the server?


    thanks

  2. #2
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: start, stop and restart samba 4.1 service in opensuse 13.1 64bit

    On 2013-12-07 23:36, Easgs wrote:

    > can anybody post an example script for opensuse 13.1 64 bit and samba
    > 4.1.2?


    Why do you need a script?

    Code:
    systemctl start smb.service
    as any other service in openSUSE.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 12.3 x86_64 "Dartmouth" at Telcontar)

  3. #3
    Join Date
    Jun 2008
    Location
    Managua, Nicaragua
    Posts
    417

    Default Re: start, stop and restart samba 4.1 service in opensuse 13.1 64 bit

    this is for samba 4 running as a AD DC

    https://wiki.samba.org/index.php/Sam...ur_Samba_AD_DC

  4. #4
    Join Date
    Mar 2010
    Location
    Austin - Texas
    Posts
    10,140
    Blog Entries
    48

    Smile Re: start, stop and restart samba 4.1 service in opensuse 13.1 64 bit

    Quote Originally Posted by Easgs View Post
    this is for samba 4 running as a AD DC

    https://wiki.samba.org/index.php/Sam...ur_Samba_AD_DC

    I do have a bash script that does it all you can find here: S.A.C.T. - Samba Automated Configuration Tool - Version 1.06 - Blogs - openSUSE Forums

    Thank You,
    My Blog: https://forums.opensuse.org/blogs/jdmcdaniel3/

    Software efficiency halves every 18 months, thus compensating for Moore's Law

    Its James again from Austin, Texas

  5. #5
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: start, stop and restart samba 4.1 service in opensuse 13.1 64bit

    On 2013-12-08 00:56, Easgs wrote:
    >
    > this is for samba 4 running as a AD DC
    >
    > http://tinyurl.com/cmk7jtq


    It doesn't matter. All services in openSUSE are started the same:

    Code:
    systemctl start NAME_OF_SERVICE.service
    If you type "systemctl start" and two tabs, you get the entire list of
    available services.

    "systemctl start" starts the service just once. If you want it to start
    automatically on every boot, you use "enable" as action word.

    In YaST you have a module named "Services Manager" where you can also
    configure what services to start or not.


    If this is not what you are asking about, please explain.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 12.3 x86_64 "Dartmouth" at Telcontar)

  6. #6
    Join Date
    Jun 2008
    Location
    Managua, Nicaragua
    Posts
    417

    Default Re: start, stop and restart samba 4.1 service in opensuse 13.1 64 bit

    Code:
    killall samba
    samba

  7. #7
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: start, stop and restart samba 4.1 service in opensuse 13.1 64bit

    On 2013-12-24 19:46, Easgs wrote:
    >
    > Code:
    > --------------------
    > killall samba
    > samba
    >
    > --------------------


    That's not the openSUSE way.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 13.1 x86_64 "Bottle" (Elessar))

  8. #8
    Join Date
    Jun 2008
    Location
    Managua, Nicaragua
    Posts
    417

    Default Re: start, stop and restart samba 4.1 service in opensuse 13.1 64 bit

    I think there is not openSUSE way for doing it, since the version of samba 4 included in openSUSE can not be configured as an AD DC, so you have to compile from source.

  9. #9
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: start, stop and restart samba 4.1 service in opensuse 13.1 64bit

    On 2013-12-26 16:26, Easgs wrote:
    >
    > I think there is not openSUSE way for doing it, since the version of
    > samba 4 included in openSUSE can not be configured as an AD DC, so you
    > have to compile from source.


    Of course there is. You just have to write the service files, or import and adapt from the openSUSE
    samba package.

    Killing the daemon your way maybe does not allow it to close orderly and properly.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 13.1 x86_64 "Bottle" (Elessar))

  10. #10
    Join Date
    Jun 2008
    Location
    Managua, Nicaragua
    Posts
    417

    Default Re: start, stop and restart samba 4.1 service in opensuse 13.1 64 bit

    I found that in the Samba_AD_DC_HOWTO

    Samba AD DC HOWTO - SambaWiki

Posting Permissions

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