Skip to content

Commit 9d502ef

Browse files
committed
fix(nginx): switch to nginx -s reload to reload nginx configuration
no issue - this is a more graceful reload command that doesn't do a hard restart of nginx
1 parent f6511f7 commit 9d502ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extensions/nginx/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ class NginxExtension extends cli.Extension {
238238
}
239239

240240
restartNginx() {
241-
return this.ui.sudo('service nginx restart')
241+
return this.ui.sudo('nginx -s reload')
242242
.catch((error) => Promise.reject(new cli.errors.ProcessError(error)));
243243
}
244244

0 commit comments

Comments
 (0)