Skip to content

Commit aa5a02e

Browse files
committed
reload instead restart for nginx
1 parent 0b5cf52 commit aa5a02e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

func/restart_web

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ apache() {
1515
}
1616

1717
nginx() {
18-
/etc/init.d/nginx 'restart' >/dev/null 2>&1
18+
/etc/init.d/nginx 'reload' >/dev/null 2>&1
1919
if [ $? -ne 0 ]; then
2020
#$V_FUNC/report_issue 'web' 'nginx'
2121
echo "$E_RESTART_FAILED $V_EVENT"

func/shared_func.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1350,4 +1350,4 @@ get_config_value() {
13501350

13511351
# Print value
13521352
echo "$value"
1353-
}
1353+
}

0 commit comments

Comments
 (0)