Daemon, wish and pod2man

Jesse Tie Ten Quee highos at highos.com
Thu Nov 23 01:39:32 PST 2000


Yo,

On Wed, Nov 22, 2000 at 08:35:31PM +0100, Sanjuro Europa wrote:
> Well that is what the How-To 
> (http://www.linux.org/docs/ldp/howto/SMB-HOWTO.html) says.

Not everything in a HOWTO is "right" or the only way you can do it (also
the documentation can be old, etc)

quasar:~# cat /etc/init.d/samba
#!/bin/bash

source /etc/init.d/functions

case "$1" in
    start)
        echo -n "Starting samba..."
        loadproc /usr/local/samba/bin/smbd &
        loadproc /usr/local/samba/bin/nmbd &
        ;;

    stop)
        echo -n "Stoppin samba..."
        killproc smbd
        killproc nmbd
        ;;

    restart)
        $0 stop
        sleep 1
        $0 start
        ;;

    status)
        statusproc smbd
        statusproc nmbd
        ;;

    *)
        echo "Usage: $0 {start|stop|restart|status}
        exit 1
        ;;
esac
quasar:~#

Here, there's an rc script to go with it, see, it's not that hard ;)

-
Jesse Tie Ten Quee - highos at highos dot com

-- 
Unsubscribe: send email to lfs-apps-request at linuxfromscratch.org
and put unsubscribe in the subject header of the message




More information about the blfs-support mailing list