I am running Fedora 16 32bit and I installed passenger with nginx (option 1 during installation, everything was handled for me). Installation went ok, but nginx is not registered as service.
The only way I can run it is directly through /opt/nginx/sbin/nginx. There is no possibility to run it via /etc/init.d/nginx
Is there any way how to register it as service?
Create file
/etc/systemd/system/nginx.servicewith the content:After that you can control it with:
or
To enable nginx to start on boot you can run
sudo systemctl enable nginx.service.