I assume that is a typo. Shouldn't S70samba point to:
/etc/rc.d/init.d/scriptname ?
Anyway, is this samba from the RH rpm or from a tar ball?
The tarball doesn't install a script for you and the RH script will not
start the tarball version, since the binaries are in different directories.
Here is a simple script I use to start the tarball version:
#!/bin/bash
case "$1" in
start)
killall smbd
killall nmbd
/usr/local/samba/bin/smbd -D
/usr/local/samba/bin/nmbd -D
;;
stop)
killall smbd
killall nmbd
;;
reload)
kill -SIGHUP `cat /usr/local/samba/var/locks/smbd.pid`
kill -SIGHUP `cat /usr/local/samba/var/locks/nmbd.pid`
;;
*)
echo Usage:
echo start stop reload
;;
esac
exit 0
Joel
On Sat, Dec 08, 2001 at 11:31:07AM -0600, Steven Schermerhorn
wrote:> I am running Redhat 7.1 and am trying to use V scripts to start samba as a
> Daemon.
>
> I have put the script in /etc/init.d and put a symbolic link in /etc/rc3.d
> with the file name S70samba (so it's /etc/rc3.d/S70samba points to
> /etc/init.d) But it will not start during boot!
>
> Does anyone have a script that I can use, I think the one I have is screwy.
>