Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 07 Nov 2017 09:46:09 -0500
From:      Ernie Luzar <luzar722@gmail.com>
To:        krad <kraduk@gmail.com>
Cc:        "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Re: Need help with rc.d script
Message-ID:  <5A01C731.4080309@gmail.com>
In-Reply-To: <CALfReyeWAFA-mUcjPjmKoDkVkG=p1S1%2Br7aCZmoucwPjoG2E0A@mail.gmail.com>
References:  <5A00F101.8040708@gmail.com> <alpine.DEB.2.21.9.1711062326320.31397@trent.utfs.org> <CALfReyeWAFA-mUcjPjmKoDkVkG=p1S1%2Br7aCZmoucwPjoG2E0A@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Tried to use the daemon command in the rc.d script with no joy.

this is in the rc.d script
. /etc/rc.subr
name=dynip
rcvar=dynip_enable
command="/usr/sbin/daemon /usr/local/bin/${name}"
run_rc_command "$1"

When I use the service command I get this
/usr/local/etc/rc.d >service dynip onestart
/usr/local/etc/rc.d/dynip: WARNING: no shebang line in /usr/sbin/daemon
/usr/local/etc/rc.d/dynip: WARNING: run_rc_command: cannot run 
/usr/sbin/daemon
/usr/local/bin/dynip

When I run from the command line using this

daemon /usr/local/bin/dynip

ps ax shows it running and has a child task for sleep and it has 
disconnected itself from the terminal that issued the command. But it 
seems to be hung.

Any other suggestions I can try.



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