[Samba] AIX starting and stopping samba from command line

BeefStu BeefStu beefstu350 at hotmail.com
Fri Jun 19 13:34:17 GMT 2009



I am running on an AIX 5.3 platform and I am looking to see if anybody has a script similar to this (see below) that will work under AIX.


My goal is, on boot up I want to have samba started automatically. Can somebody let me what I have to do (on AIX) for this to happen.






    # /etc/rc.d/init.d/smb - starts and stops SMB services.
    # The following files should be synbolic links to this file:
    # symlinks: /etc/rc.d/rc1.d/K35smb  (Kills SMB services on shutdown)
    #           /etc/rc.d/rc3.d/S91smb  (Starts SMB services in multiuser mode)
    #           /etc/rc.d/rc6.d/K35smb  (Kills SMB services on reboot)

    # Source function library.
    . /etc/rc.d/init.d/functions

    # Source networking configuration.
    . /etc/sysconfig/network

    # Check that networking is up.
    [ ${NETWORKING} = "no" ] && exit 0

    # See how we were called.
    case "$1" in
        echo -n "Starting SMB services: "
        daemon smbd -D  
        daemon nmbd -D 
        touch /var/lock/subsys/smb
        echo -n "Shutting down SMB services: "
        killproc smbd
        killproc nmbd
        rm -f /var/lock/subsys/smb
        echo ""
        echo "Usage: smb {start|stop}"
        exit 1

Microsoft brings you a new way to search the web.  Try  Bing™ now
http://www.bing.com?form=MFEHPG&publ=WLHMTAG&crea=TEXT_MFEHPG_Core_tagline_try bing_1x1

More information about the samba mailing list