diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-09-26 17:43:57 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-09-26 17:45:50 +0200 |
commit | 0dcb1aec32f8c0bfe43b3a544ed330251e069ae5 (patch) | |
tree | 6f97e11eda313ccb91b9eeb6c7f9103bcfb2a51a /main/nginx/nginx.initd | |
parent | 1200346c7885ce07c900d076a052dde389ed7554 (diff) | |
download | aports-0dcb1aec32f8c0bfe43b3a544ed330251e069ae5.tar.bz2 aports-0dcb1aec32f8c0bfe43b3a544ed330251e069ae5.tar.xz |
main/nginx: add checkconfig to init script
Diffstat (limited to 'main/nginx/nginx.initd')
-rw-r--r-- | main/nginx/nginx.initd | 7 |
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 $? } |