fuel-web/systemd/nailgun.service
Ivan Suzdal 2daa7afc98 Systemd support for nailgun services
Add systemd service units for nailgun components.

Also fix rhel macros condition in RPM spec.

Blueprint: master-on-centos7

Compatible with CentOS6 master node

Change-Id: I4dc45774fba16037e0d4ccd077ca786a18f58ec2
2015-11-30 13:47:32 +00:00

14 lines
349 B
Desktop File

[Unit]
Name=Nailgun daemon
ConditionPathExists=/etc/nailgun/uwsgi_nailgun.yaml
[Service]
ExecStart=/usr/sbin/uwsgi -y /etc/nailgun/uwsgi_nailgun.yaml
ExecReload=/usr/sbin/uwsgi --reload /var/run/nailgun.pid
ExecStop=/usr/sbin/uwsgi --stop /var/run/nailgun.pid
ExecStopPost=/usr/bin/rm -f /var/run/nailgun.pid
[Install]
WantedBy=multi-user.target