Skip to content

SRM audit issue - st2config file might be required to remain on disk - any workaround? #5784

Answered by arm4b
bro-relax asked this question in Operations
Discussion options

You must be logged in to vote

Yeah, if you're on VM install, logrotate via config below might send a signal to StackStorm that probably leads to a configuration reload.

st2/conf/logrotate.conf

Lines 40 to 47 in 9abb54b

## API
/var/log/st2/st2api.log {
daily
rotate 5
postrotate
st2ctl reopen-log-files st2api > /dev/null
endscript
}

st2/st2common/bin/st2ctl

Lines 139 to 142 in 9abb54b

for p in ${PID}; do
echo "Sending SIGUSR1 to ${COM} PID: ${p}"
kill -USR1 ${p}
done

so yeah, try to dig deeper if it's logrotate.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@bro-relax
Comment options

Answer selected by bro-relax
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2 participants