Fixing a Masakari service paths

Upstream process_list.yaml.sample, which was likely
a source for the charm version, has slightly different
binaries paths. This patch provides correct systemd service
names and binaries locations for the masakari-process-monitor
service.

Closes-Bug: #1941644
Change-Id: Ic209723fe7bfdf030310cf8a3e5607caf6a73853
This commit is contained in:
Vladimir Grevtsev 2021-08-25 22:36:27 +04:00
parent 3fb5e63311
commit 37a22da2fd
2 changed files with 14 additions and 8 deletions

View File

@ -1,3 +1,6 @@
# WARNING: Maintained by Juju.
# All manual changes will be overridden.
[DEFAULT]
debug = {{ options.debug }}
host = {{ options.hostname }}

View File

@ -1,3 +1,6 @@
# WARNING: Maintained by Juju.
# Any manual changes will be overridden.
# Define the monitoring processes as follows:
# process_name: [Name of the process as it in 'ps -ef'.]
# start_command: [Start command of the process.]
@ -13,10 +16,10 @@
-
# libvirt-bin
process_name: /usr/sbin/libvirtd
start_command: systemctl start libvirt-bin
start_command: systemctl start libvirtd
pre_start_command:
post_start_command:
restart_command: systemctl restart libvirt-bin
restart_command: systemctl restart libvirtd
pre_restart_command:
post_restart_command:
run_as_root: True
@ -32,21 +35,21 @@
run_as_root: True
-
# instancemonitor
process_name: /usr/local/bin/masakari-instancemonitor
start_command: systemctl start masakari-instancemonitor
process_name: /usr/bin/masakari-instancemonitor
start_command: systemctl start masakari-instance-monitor
pre_start_command:
post_start_command:
restart_command: systemctl restart masakari-instancemonitor
restart_command: systemctl restart masakari-instance-monitor
pre_restart_command:
post_restart_command:
run_as_root: True
-
# hostmonitor
process_name: /usr/local/bin/masakari-hostmonitor
start_command: systemctl start masakari-hostmonitor
process_name: /usr/bin/masakari-hostmonitor
start_command: systemctl start masakari-host-monitor
pre_start_command:
post_start_command:
restart_command: systemctl restart masakari-hostmonitor
restart_command: systemctl restart masakari-host-monitor
pre_restart_command:
post_restart_command:
run_as_root: True