aboutsummaryrefslogtreecommitdiffstats
path: root/main/nginx/nginx.initd
diff options
context:
space:
mode:
Diffstat (limited to 'main/nginx/nginx.initd')
-rw-r--r--main/nginx/nginx.initd7
1 files changed, 6 insertions, 1 deletions
diff --git a/main/nginx/nginx.initd b/main/nginx/nginx.initd
index 992d5fd5b9..c4e8bf81ac 100644
--- a/main/nginx/nginx.initd
+++ b/main/nginx/nginx.initd
@@ -1,6 +1,7 @@
#!/sbin/openrc-run
description="Nginx http and reverse proxy server"
+extra_commands="checkconfig"
extra_started_commands="reload reopen upgrade"
cfgfile=${cfgfile:-/etc/nginx/nginx.conf}
@@ -15,9 +16,13 @@ depend() {
}
start_pre() {
- ebegin
checkpath --directory --owner nginx:nginx ${pidfile%/*}
$command $command_args -t -q
+}
+
+checkconfig() {
+ ebegin "Checking ${SVCNAME} configuration"
+ start_pre
eend $?
}