added startup script fixes pr ports/74135
Oops. The line ++rcvar`set_rcvar` in the diff should be ++rcvar=`set_rcvar`
State Changed From-To: open->closed Committed, thanks!
the name of the script must be anacron and not anacron.sh. because scripts named *.sh are considered old-style script and run whatever is set in /etc/rc.conf (am i right ?) install the anacron's port and you will see that even if you don't set anything in /etc/rc.conf the anacron.sh is run. Moreover you got that warning Local package initialization:/usr/local/etc/rc.d/anacron.sh: WARNING: $anacron_enable is not set properly - see rc.conf(5). you must add one line to make that warning disapears as the patch below show --- anacron Wed Nov 24 21:57:10 2004 +++ /usr/local/etc/rc.d/anacron Wed Nov 24 21:50:17 2004 @@ -6,6 +6,8 @@ # REQUIRE: LOGIN # KEYWORD: FreeBSD +anacron_enable=${anacron_enable-"NO"} + . /etc/rc.subr prefix=/usr/local
Quoting solsTiCe d'Hiver (solstice.dhiver@laposte.net): > the name of the script must be anacron and not anacron.sh. > because scripts named *.sh are considered old-style script and run > whatever is set in /etc/rc.conf (am i right ?) The name of the script doesn't matter for rcNG, see rc(8). Only old-style rc-scripts must be named *.sh. > install the anacron's port and you will see that even if you don't set > anything in /etc/rc.conf the anacron.sh is run. > > Moreover you got that warning > Local package initialization:/usr/local/etc/rc.d/anacron.sh: WARNING: > $anacron_enable is not set properly - see rc.conf(5). That's intentional. I think it is better to emit a warning, than to silently ignore the port, or worse, to silently start an unconfigured program. -Derik.