File tree Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Original file line number Diff line number Diff line change
1
+ DeleteMeToRestart
Original file line number Diff line number Diff line change @@ -31,9 +31,7 @@ if ($restartInput -eq "True" -OR $restartServer -eq "True" -OR $restartDS -eq "T
31
31
if ($restartDateTime -eq " True" ) {
32
32
Remove-Item - path " $dateTimePath "
33
33
}
34
- sleep 5
35
- $restart = " restart"
36
- & " $SPLUNKHOME \bin\splunk.exe" $restart
34
+ Remove-Item - path " $SPLUNKHOME \etc\apps\SplunkForwarderRepairKit\DeleteMeToRestart"
37
35
} else {
38
36
Write-output " No settings have been changed." | timestamp
39
37
Write-output " No restart required." | timestamp
Original file line number Diff line number Diff line change @@ -25,8 +25,7 @@ if [ -f $RESTARTINPUT ] | [ -f $RESTARTSERVER ] | [ -f $RESTARTDS ] | [ -f $REST
25
25
if [ -f $RESTARTDATETIME ]; then
26
26
rm $RESTARTDATETIME
27
27
fi
28
- sleep 5
29
- $SPLUNK_HOME /bin/splunk restart
28
+ rm -f $SPLUNK_HOME /etc/apps/SplunkForwarderRepairKit/DeleteMeToRestart
30
29
else
31
30
echo " $( date +" %Y-%m-%d %H:%M:%S.%3N" ) ${HOSTNAME} : No settings have been changed."
32
31
echo " $( date +" %Y-%m-%d %H:%M:%S.%3N" ) ${HOSTNAME} : No restart required."
You can’t perform that action at this time.
0 commit comments