- Edited
There is no httpd service for 66 yet and I needed one so I made one (because by now, I can bwahahaha!). Maybe you want to add it:
[main]
@ type = classic
@ name = httpd
@ description = "apache server daemon"
@ user = ( root )
@ options = ( env )
[start]
@ build = auto
@ execute = ( execl-cmdline -s { httpd ${CMD_ARGS} } )
[stop]
@ build = auto
@ execute = ( execl-cmdline -s { httpd ${CMD_ARGS_STOP} } )
[environment]
!CMD_ARGS=-k start -DFOREGROUND
!CMD_ARGS_STOP=-k graceful-stop
I would've liked to add a logger, but I don't know how to go about it. There's an -e option to httpd wich sets the loglevel and an -E option to "send error messages during server startup to file." Would it be enough to just add "log" to @ options?