Hello!

I have a problem with sec 2.7.10

I created the instance:
# cat /etc/sysconfig/sec
OPTIONS_tomcat="-input=/var/log/tomcat/catalina.out”


and configured via systemd
# cat /lib/systemd/system/sec@.service
[Unit]
Description=Simple Event Correlator (instance %I)
After=syslog.target

[Service]
Type=forking
PIDFile=/run/sec-%I.pid
ExecStart=/usr/bin/sec -detach -pid=/run/sec-%I.pid -conf=/etc/sec/%I.sec 
--debug=6 --nochildterm -log=/var/log/sec-%I --nointevents $OPTIONS_%I
EnvironmentFile=/etc/sysconfig/sec

[Install]
WantedBy=multi-user.target


My rules restart the application after the event in the log:
# cat /etc/sec/tomcat.sec
type=SingleWithSuppress
ptype=RegExp
pattern=(^.+OutOfMemoryError.+$)
desc=Tomcat restarted after OutOfMemoryError Exception
action=shellcmd /opt/scripts/restart-tomcat.sh
window=300

And it works great! But after the event, if I try to execute a restart of the 
instance (systemctl restart sec@tomcat), my application stops(((
I can not understand why this is happening and how to fix it ...


-- 
WBR
Yuri Kazankin
yuni...@yahoo.com


------------------------------------------------------------------------------
_______________________________________________
Simple-evcorr-users mailing list
Simple-evcorr-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users

Reply via email to