Nginx fails to start - nginx.service not found

i just built the latest mainline nginx from source on fedora 21 (64bit)
and
when i run: service nginx start

i see:

Redirecting to /bin/systemctl start nginx.service
Failed to start nginx.service: Unit nginx.service failed to load: No
such
file or directory.

i’ve searched around online and so far found no-one else reporting the
same
issue.
i think i have fixed this before on another installation in the past…
but
presently i’m not sure what the resolutioin is - can anyone help?

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,257457,257457#msg-257457

Hello,

On 20/03/2015 01:08, tunist wrote:

issue.
i think i have fixed this before on another installation in the past… but
presently i’m not sure what the resolutioin is - can anyone help?

Nginx source code does not contain a service file for systemd. You’re
free to re-use the one shipped in the official packages available on
http://nginx.org/en/linux_packages.html#mainline.

Also, it might be worth rebuilding an official source rpm package - the
fedora systemd support is in there, it’s just we don’t build those
packages specifically for fedora linux.


Konstantin P.

Konstantin P. Wrote:

Nginx source code does not contain a service file for systemd. You’re
free to re-use the one shipped in the official packages available on
http://nginx.org/en/linux_packages.html#mainline.

Also, it might be worth rebuilding an official source rpm package -
the
fedora systemd support is in there, it’s just we don’t build those
packages specifically for fedora linux.

oh, ok - thanks; i used this file from the nginx site and all appears to
be
ok now:
http://wiki.nginx.org/FedoraSystemdServiceFile

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,257457,257540#msg-257540

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs