2daa7afc98
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
14 lines
349 B
Desktop File
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
|
|
|