Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Dec 2002 19:25:07 +0200
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        Adam Lofstedt <adaml@visimation.com>
Cc:        "'freebsd-questions'" <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Problem with my startup script?
Message-ID:  <20021219172507.GC985@gothmog.gr>
In-Reply-To: <002001c2a77f$f40db760$6f00000a@5adam5>
References:  <002001c2a77f$f40db760$6f00000a@5adam5>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2002-12-19 08:59, Adam Lofstedt <adaml@visimation.com> wrote:
> I am trying to mount a windows share at boot with mount_smbfs.  Since I
> have to use the noauto option in fstab (filesystems in fstab are mounted
> before the network is initialized), I have created a startup script
> (smbfsstartup.sh) and placed it in /usr/local/etc/rc.d:
>
> case "$1" in
>     start)
>         /sbin/mount /myshare
> 	;;
>     stop)
> 	#Maybe do something here...
> 	;;
>     *)
>     ;;
> esac
>
> This exact same script worked just fine on another machine.  When I
> moved it to a different machine I get this message when my system boots
> up:
>
> Local Package Initialization : (skipping smbfsstartup.sh, not
> executable).

Take a look at the permissions of the script file with ls(1).  The
message is very verbose already.  The file has a name that ends in
`.sh' but it is not executable, and this is why it's skipped.

Quick fix:

	# chmod 0750 /usr/local/etc/rc.d/smbfsstartup.sh

- Giorgos



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021219172507.GC985>