Fix pidfile usage
and fix other things...
This commit is contained in:
parent
0ee3fe0852
commit
0f429b7d8d
@ -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,
|
||||
|
@ -1,3 +1,6 @@
|
||||
[default]
|
||||
pidfile = <%= @pid_file %>
|
||||
|
||||
[gerrit]
|
||||
username = <%= @gerrit_username %>
|
||||
hostname = <%= @gerrit_hostname %>
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user