This is largely drawn from the excellent Digital Ocean guide,
but with a little more detail around the
Using this method, there’s no longer any need for
will do the restarting automatically.
Put into (for example)
If you make changes to the .service file, you should to execute :
If everything is set up properly, the service can be controlled with :
Other things to watch out for…
Also, remember to set permissions for the configured User/Group to access the
Also, note that to make a webserver (
nginx, say) talk to your
backend server (
node, say), SELINUX needs :
where the ‘-P’ option makes this work across reboots.
blog comments powered by Disqus