Find the answer to your Linux question:
Results 1 to 6 of 6
i want to stop and start samba with smbd start/stop how do i do this thnx...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2002
    Posts
    6

    newbie needs help :)


    i want to stop and start samba with
    smbd start/stop
    how do i do this

    thnx

  2. #2
    Linux User
    Join Date
    Jul 2002
    Location
    Daytona Beach, FL
    Posts
    487
    if you are root type

    service smbd stop/start/restart/status

    if you are not root

    sudo /etc/init.d/smbd stop/start/restart/status

    (you need root permission to execute the command, but if you use sudo service will not be in your path)
    majorwoo

    Quiet brain, or I\'ll stab you with a Q-tip.

  3. #3
    Just Joined!
    Join Date
    Dec 2002
    Posts
    6
    yes i'm root

    but that doesn't work because i installed it from the srcfiles

    zo i need to start smbd -D and nmbd -D manually

    now did i write a script that exec tis commands but
    if i what to stop them i need to do ps -aux then find
    the pid en kill them

    zo i want to write a script that do this for me

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Enthusiast
    Join Date
    Jun 2002
    Location
    San Antonio
    Posts
    621
    if you use RedHat there is a "loadproc" function that is in /etc/sysconfig/functions or something like that, that puts a smbd.pid and nmbd.pid file in /var/run/ that contains nothing but the pid of the currently running smbd and nmbd processes. That way you can: kill `cat /var/run/smbd.pid`
    I respectfully decline the invitation to join your delusion.

  6. #5
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    I've put up my /etc/rc.d/init.d/smb in my ftp dir, you can download it from ftp://dolda2000.cjb.net/pub/smb. It is very possible that it only works in RedHat, though.

  7. #6
    Just Joined!
    Join Date
    Dec 2002
    Posts
    6
    thnx

Posting Permissions

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