I'm working on a system whose primary startup system is runit.
Unfortunately, runit requires that whatever application it is running be running in the foreground like so:
#!/bin/bash
exec sshd -D
Seeing as nginx doesn't offer a way to run it in the foreground, how can I have runit still manage nginx and be able to stop, start, and restart it using runit's sv
commands?
/etc/init.d/
scripts. – Naftuli Kay Jul 30 '14 at 16:50nginx
doc says you can't. My answer also provides details explanation. – cuonglm Jul 30 '14 at 16:51