Use pmon to restart sssd service
Using systemctl to directly restart sssd is causing pmond to handle this scenario as a process failure. This commit updates the sssd service restart command in puppet files, to replace "systemctl restart" with "pmon-restart". Tests performed: PASS: sssd service is successfully started. PASS: sssd service status is enabled and active. PASS: Kill sssd process multiple times and check if it gets restarted successfully every time. PASS: Verified ssl_ca install and update with new certificate triggers successful sssd restart. PASS: Verified sssd service is restarted by pmon and not by systemctl when a new domain configuration is added. PASS: Verify sssd service connects successfully to local openldap server Story: 2009834 Task: 47023 Signed-off-by: Carmen Rata <carmen.rata@windriver.com> Change-Id: I45faa79471c6d4fa7afbb568451cd49156228d51
This commit is contained in:
parent
a49221892b
commit
c2f86a1d16
@ -360,7 +360,7 @@ class platform::config::certs::ssl_ca
|
||||
}
|
||||
|
||||
-> exec { 'restart sssd service on cert install/uninstall':
|
||||
command => '/usr/bin/systemctl restart sssd.service',
|
||||
command => '/usr/local/sbin/pmon-restart sssd',
|
||||
onlyif => "test '${::osfamily }' == 'Debian'",
|
||||
}
|
||||
|
||||
|
@ -49,7 +49,7 @@ class platform::sssd::domain::runtime
|
||||
|
||||
Class['::platform::sssd::config']
|
||||
-> exec { 'restart sssd service':
|
||||
command => '/usr/bin/systemctl restart sssd.service',
|
||||
command => '/usr/local/sbin/pmon-restart sssd',
|
||||
onlyif => "test '${::osfamily }' == 'Debian'",
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user