Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Jun 2001 08:54:42 -0400 (EDT)
From:      Dru <genisis@istar.ca>
To:        <questions@freebsd.org>
Subject:   script not found in /usr/local/etc/rc.d
Message-ID:  <20010617084410.H37439-200000@x1-6-00-50-ba-de-36-33.kico1.on.home.com>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]

I've added a script called mnwclient.sh to /usr/local/etc/rc.d:

ls -l /usr/local/etc/rc.d/mnwclient.sh
-rwxr-xr-x  1 root  wheel  635 Jun 17 08:07 /usr/local/etc/rc.d/mnwclient.sh*

file /usr/local/etc/rc.d/mnwclient.sh
/usr/local/etc/rc.d/mnwclient.sh: Bourne shell script text executable

It refers to an executable called mnwclient:
ls -l /usr/sbin/mnwclient
-rwxr-xr-x  1 root  wheel  33518 Jun 17 08:07 /usr/sbin/mnwclient*

file /usr/sbin/mnwclient
/usr/sbin/mnwclient: perl script text executable

However, when I try to start the script manually or when I reboot, I get
an error message stating the script is not found:

/etc/rc: /usr/local/etc/rc.d/mnwclient.sh: not found

What am I missing here besides my sanity? I've attached the script if that
helps.

TIA,

Dru

[-- Attachment #2 --]
#!/bin/sh

#

# mnwclient     This shell script takes care of starting and stopping

#               myNetWatchman Agent for FreeBSD

#

# description: mnwclient

# untested needs default paths of /bin and /usr/bin



# Check that networking is up.

#[ ${NETWORKING} = "no" ] && exit 0



# check if the mnwclient.rc file is present

[ -f /etc/mnwclient.rc ] || exit 0



# check to see if mnwclient exists

[ -f /usr/sbin/mnwclient ] || exit 0



if [ $# -eq 0 -o x$1 = xstart ]; then

    /usr/sbin/mnwclient -c /etc/mnwclient.rc &

fi



if [ x$1 = xstop ]; then

   /bin/kill `ps | grep 'perl.*mnwclient' | cut -f 1 -d " "`

fi




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