Need help with rc.d script
luzar722 at gmail.com
Tue Nov 7 18:11:37 UTC 2017
Ending the while loop with "done &" worked.
When I issue dynip from the command line it runs as a daemon but I have
to use the kill command to stop it.
This is my rc.d script for dynip script. issuing "service dynip start"
works but "service dynip stop" gives message saying
dynip not running? (Check /var/run/dynip.pid). Well ps ax shows it is
running and I have to use the kill command to stop it.
Here is my rc.d script. What am I missing to populate the dynip.pid file
so "service dynip stop" command will work?
# PROVIDE: dynip
# REQUIRE: LOGIN
# KEYWORD: nojail shutdown
# Add the following line to /etc/rc.conf to enable dynip:
More information about the freebsd-questions