Check out
http://www.ibiblio.org/pub/Linux/docs/HOWTO/other-formats/html_single/Adv-Bash-Scr-HOWTO.html
Example 3-69 should help..
Steven
At 09:38 AM 3/14/01 +0000, Rick Rosinski wrote:
>I need a little help with configuring samba.
>
>I am working on getting samba to work between my Slack box and my Win98 box.
>I was reading the SMB-HOWTO and I am finding it pretty informative. But, I
>have noticed that the example scripts, like the /etc/rc.d/smb script, is
>based on RH-based systems, that use sysconfig and killproc commands, which
>are not in Slack. I want to work around that. Below is part of the smb
>script that I want to have functional. I have included comments (after # )
>refering to what I plan to modify. The "start" case clause is easy to
>modify, but the "stop" clause has that "killproc" command. What do I use to
>substitute killproc?
>
> case "$1" in
> start)
> echo -n "Starting SMB services: "
> daemon smbd -D # to be replaced with /usr/bin/smbd -D
> daemon nmbd -D # to be replaced with /usr/bin/nmbd -D
> echo
> touch /var/lock/subsys/smb
> ;;
> stop)
> echo -n "Shutting down SMB services: "
> killproc smbd # what do I do to get this to work without killproc?
> killproc nmbd # same as above.
> rm -f /var/lock/subsys/smb
> echo ""
> ;;
> *)
> echo "Usage: smb {start|stop}"
> exit 1
> esac
>
>
>
>--
>Rick Rosinski
>http://rickrosinski.com
>rick@rickrosinski.com
>
>________________________________________________
>See http://PLUG.phoenix.az.us/navigator-mail.shtml if your mail doesn't
>post to the list quickly and you use Netscape to write mail.
>
>Plug-discuss mailing list - Plug-discuss@lists.PLUG.phoenix.az.us
>http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
Steven M. Klass
Physical Design Engineering Manager
Andigilog Inc.
7404 W. Detroit Street, Suite 100
Chandler, AZ 85226
Ph: 480-940-6200 ext. 18
Fax: 480-940-4255
sklass@andigilog.com
http://www.andigilog.com/