Merge "Add pmon configuration file for ovs-vswitchd"
This commit is contained in:
commit
2bc3391ae1
@ -1,2 +1,2 @@
|
|||||||
SRC_DIR="files"
|
SRC_DIR="files"
|
||||||
TIS_PATCH_VER=0
|
TIS_PATCH_VER=1
|
||||||
|
@ -30,6 +30,7 @@ StarlingX openvswitch configuration file
|
|||||||
%install
|
%install
|
||||||
install -d -m 0755 %{buildroot}%{_sysconfdir}/openvswitch
|
install -d -m 0755 %{buildroot}%{_sysconfdir}/openvswitch
|
||||||
install -m 0644 ovsdb-server.pmon.conf %{buildroot}%{_sysconfdir}/openvswitch/ovsdb-server.pmon.conf
|
install -m 0644 ovsdb-server.pmon.conf %{buildroot}%{_sysconfdir}/openvswitch/ovsdb-server.pmon.conf
|
||||||
|
install -m 0644 ovs-vswitchd.pmon.conf %{buildroot}%{_sysconfdir}/openvswitch/ovs-vswitchd.pmon.conf
|
||||||
install -d %{buildroot}%{_datadir}/starlingx
|
install -d %{buildroot}%{_datadir}/starlingx
|
||||||
install -m 0640 etc_logrotate.d_openvswitch %{buildroot}%{_datadir}/starlingx/etc_logrotate.d_openvswitch
|
install -m 0640 etc_logrotate.d_openvswitch %{buildroot}%{_datadir}/starlingx/etc_logrotate.d_openvswitch
|
||||||
|
|
||||||
@ -43,4 +44,5 @@ fi
|
|||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%config(noreplace) %{_sysconfdir}/openvswitch/ovsdb-server.pmon.conf
|
%config(noreplace) %{_sysconfdir}/openvswitch/ovsdb-server.pmon.conf
|
||||||
|
%config(noreplace) %{_sysconfdir}/openvswitch/ovs-vswitchd.pmon.conf
|
||||||
%{_datadir}/starlingx/etc_logrotate.d_openvswitch
|
%{_datadir}/starlingx/etc_logrotate.d_openvswitch
|
||||||
|
24
networking/openvswitch-config/files/ovs-vswitchd.pmon.conf
Normal file
24
networking/openvswitch-config/files/ovs-vswitchd.pmon.conf
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
[process]
|
||||||
|
process = ovs-vswitchd
|
||||||
|
service = ovs-vswitchd ; The name of the process's systemd service file without the extension
|
||||||
|
pidfile = /var/run/openvswitch/ovs-vswitchd.pid
|
||||||
|
style = lsb ; ocf or lsb
|
||||||
|
severity = critical ; minor, major, critical
|
||||||
|
restarts = 0 ; restarts before error assertion
|
||||||
|
interval = 0 ; number of seconds to wait between restarts
|
||||||
|
debounce = 20 ; number of seconds that a process needs to remain
|
||||||
|
; running before degrade is removed and retry count
|
||||||
|
; is cleared.
|
||||||
|
startuptime = 5 ; Seconds to wait after process start before starting the debounce monitor
|
||||||
|
mode = passive ; Monitoring mode: passive (default) or active
|
||||||
|
; passive: process death monitoring (default: always)
|
||||||
|
; active : heartbeat monitoring, i.e. request / response messaging
|
||||||
|
; ignore : do not monitor or stop monitoring
|
||||||
|
subfunction = worker ; Optional label.
|
||||||
|
; Manage this process in the context of a combo host subfunction
|
||||||
|
; Choices: worker or storage.
|
||||||
|
; when specified pmond will wait for
|
||||||
|
; /var/run/.worker_config_complete or
|
||||||
|
; /var/run/.storage_config_complete
|
||||||
|
; ... before managing this process with the specified subfunction
|
||||||
|
; Excluding this label will cause this process to be managed by default on startup
|
Loading…
Reference in New Issue
Block a user