mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-07 01:32:47 +01:00
[fix] Also kill+start while trying to restart service initially
This commit is contained in:
@@ -1650,7 +1650,8 @@ salt_checkin() {
|
|||||||
|
|
||||||
count=0
|
count=0
|
||||||
while ! (check_service_status "$service"); do
|
while ! (check_service_status "$service"); do
|
||||||
echo "$service still not running" >> "$setup_log" 2>&1
|
systemctl kill "$service"
|
||||||
|
systemctl start "$service"
|
||||||
if [ $count -gt 120 ]; then
|
if [ $count -gt 120 ]; then
|
||||||
echo "$service could not be restarted in 120 seconds, exiting" >> "$setup_log" 2>&1
|
echo "$service could not be restarted in 120 seconds, exiting" >> "$setup_log" 2>&1
|
||||||
kill -SIGUSR1 "$(ps --pid $$ -oppid=)"; exit 1
|
kill -SIGUSR1 "$(ps --pid $$ -oppid=)"; exit 1
|
||||||
|
|||||||
Reference in New Issue
Block a user