You are not logged in.
A quick question, please?
Does nginx -s reload (as root) accomplish the same thing as sudo systemctl restart nginx.service, please?
Thanks
Offline
Almost:
https://salsa.debian.org/nginx-team/ngi … ervice#L24
EDIT: or use
# /etc/init.d/nginx restart
https://salsa.debian.org/nginx-team/ngi … #L132-L156
Last edited by Head_on_a_Stick (2023-01-21 22:16:04)
Brianna Ghey — Rest In Power
Offline
nginx restart errors
invalid option: "restart"
I'm not sure what to make of the salsa.debian.org pages ... do I need to edit something so that nginx -s reload is the same as nginx restart?
Offline
nginx restart
That's not what I posted
EDIT: the first salsa link shows the ExecReload line from the systemd unit file for nginx; that command is what is run when systemctl restart nginx is called.
Better to use the init script instead though, hence my suggestion in the code block.
Last edited by Head_on_a_Stick (2023-01-21 22:39:55)
Brianna Ghey — Rest In Power
Offline
Alternatively use either
sudo service nginx restart
or
su -
service nginx restart
depending on whether you have a root password or not.
Offline
dcolburn wrote:nginx restart
That's not what I posted
EDIT: the first salsa link shows the ExecReload line from the systemd unit file for nginx; that command is what is run when systemctl restart nginx is called.
Better to use the init script instead though, hence my suggestion in the code block.
That's me missing a detail, again ...
I was sitting at /etc/nginx/ and missed the /init.d/ .. sigh.
All good, thanks!
Onward ...
Offline
Alternatively use either
sudo service nginx restart
or
su - service nginx restart
depending on whether you have a root password or not.
OK, cool, I'm in root but
sudo service nginx restart
ran fine.
Thanks
Offline