Hi
I am trying to use the rc script [1] (found via [2]) on my FreeBSD 10.1 installation. The script was originally written for FreeBSD 6.0 (that's what it claims, at least).
For some reason the script does not work (when called with the "start" argument). It claims that it "cannot run " (and I think it should indicate what it cannot run but it's empty which is probably the reason why it cannot be run...). Basically saying "I cannot run <nothing>".
From what I understand the script is "constructing" the concrete command in
Do I have to have
I also found another resource [3] talking about the same thing. They have a
Unfortunately I do not seem to understand enough of rc scripting to figure this out.
For example, is there a difference between these two lines (not the colon before the equal sign in the first line)?
This is from [4], section 4, A configurable dummy script.
[1] https://redmine.lighttpd.net/attachments/661/fastcgi-php.2.sh
[2] https://redmine.lighttpd.net/projects/lighttpd/wiki/Fastcgi-php-starter-for-freebsd
[3] https://code.djangoproject.com/ticket/9182
[4] https://www.freebsd.org/doc/en/articles/rc-scripting/article.html
I am trying to use the rc script [1] (found via [2]) on my FreeBSD 10.1 installation. The script was originally written for FreeBSD 6.0 (that's what it claims, at least).
For some reason the script does not work (when called with the "start" argument). It claims that it "cannot run " (and I think it should indicate what it cannot run but it's empty which is probably the reason why it cannot be run...). Basically saying "I cannot run <nothing>".
From what I understand the script is "constructing" the concrete command in
start_precmd
. That procedure (?) is never called, it seems. Maybe because rc.subr() "realises" that it does not know what command to execute?Do I have to have
start_cmd
set?I also found another resource [3] talking about the same thing. They have a
start_cmd
...Unfortunately I do not seem to understand enough of rc scripting to figure this out.
For example, is there a difference between these two lines (not the colon before the equal sign in the first line)?
Code:
: ${dummy_enable:=no}
: ${dummy_msg="Nothing started."}
This is from [4], section 4, A configurable dummy script.
[1] https://redmine.lighttpd.net/attachments/661/fastcgi-php.2.sh
[2] https://redmine.lighttpd.net/projects/lighttpd/wiki/Fastcgi-php-starter-for-freebsd
[3] https://code.djangoproject.com/ticket/9182
[4] https://www.freebsd.org/doc/en/articles/rc-scripting/article.html