Fix pidfile usage

and fix other things...
This commit is contained in:
Matthew Treinish 2016-07-19 18:20:32 -04:00
parent 0ee3fe0852
commit 0f429b7d8d
No known key found for this signature in database
GPG Key ID: FD12A0F214C9E177
3 changed files with 9 additions and 4 deletions

View File

@ -17,10 +17,12 @@
class germqtt::server (
gerrit_username,
gerrit_hostname = review.openstack.org,
gerrit_hostname = 'review.openstack.org',
gerrit_key,
mqtt_hostname = firehose01.openstack.org,
topic = gerrit
mqtt_hostname = 'firehose01.openstack.org',
topic = 'gerrit',
pid_file = '/var/run/germqtt.pid',
) {
file { '/etc/germqtt.conf':
ensure => present,

View File

@ -1,3 +1,6 @@
[default]
pidfile = <%= @pid_file %>
[gerrit]
username = <%= @gerrit_username %>
hostname = <%= @gerrit_hostname %>

View File

@ -4,7 +4,7 @@ Description=Germqtt Daemon
[Service]
Type=forking
PIDFile=<%= @pid_file %>
ExecStart=/usr/local/bin/germqtt.py -c /etc/germqtt/germqtt.conf -p <%= @pid_file %>
ExecStart=/usr/local/bin/germqtt.py /etc/germqtt/germqtt.conf
User=germqtt
Group=germqtt