TDub
10-08-2000, 11:42 PM
I just installed Samba on my SPARC-20 running Solaris 8. I am trying to write a script to start nmbd and smbd during bootup. This is my first attempt at writing a shell script. This is my file /etc/init.d/startsmb.
#!/sbin/sh
echo "Starting Samba...."
/usr/local/samba/bin/smbd -D
/usr/local/samba/bin/nmbd -D
echo "done"
Here are the permissions.
# ls -al startsmb
-rwxr--r-- 1 root sys 210 Oct 8 02:21 startsmb
According to the "file" command it is an executable script.
# file startsmb
startsmb: executable /sbin/sh script
I cannot get this script to work and must start the daemons manually. Is there something that I am missing?
#!/sbin/sh
echo "Starting Samba...."
/usr/local/samba/bin/smbd -D
/usr/local/samba/bin/nmbd -D
echo "done"
Here are the permissions.
# ls -al startsmb
-rwxr--r-- 1 root sys 210 Oct 8 02:21 startsmb
According to the "file" command it is an executable script.
# file startsmb
startsmb: executable /sbin/sh script
I cannot get this script to work and must start the daemons manually. Is there something that I am missing?