I have a simple jail I use for occasional testing. Recently, I installed nginx on it. I made an /etc/rc.conf.d/nginx file that reads
However, when I run service nginx start I get a message
However if I jexec into the jail, and cd in /usr/local/etc/rc.d, I can start it with
I don't remember running into this before, and web searching only shows me somewhat similar issues with fixes that seem to have nothing to do with my situation. (Tried the ones that I could, but none worked).
My jail has no /etc/rc.conf, though I did try creating a line to enable nginx but it gave me the same message, that it didn't exist in /etc/rc.d (which, it doesn't, it's in /usr/local/etc/rc.d)
I'm guessing it's something obvious that I've forgotten so be nice.
enable_nginx="YES"
However, when I run service nginx start I get a message
nginx does not exist in /etc/rc.d or the local startup
directories (/etc/rc.d), or is not executable
However if I jexec into the jail, and cd in /usr/local/etc/rc.d, I can start it with
./nginx start
I don't remember running into this before, and web searching only shows me somewhat similar issues with fixes that seem to have nothing to do with my situation. (Tried the ones that I could, but none worked).
My jail has no /etc/rc.conf, though I did try creating a line to enable nginx but it gave me the same message, that it didn't exist in /etc/rc.d (which, it doesn't, it's in /usr/local/etc/rc.d)
I'm guessing it's something obvious that I've forgotten so be nice.