Anyone willing to share their system unit file?

Here's mine ... but it doesn't work:

[Unit]
Description=Simple Event Correlator
AssertFileIsExecutable=/opt/local/script/sec
AssertPathExistsGlob=/opt/local/etc/sec/*.sec
After=syslog.target network.target

[Service]
Type=simple
ExecStart=/opt/local/script/sec --conf=/opt/local/etc/sec/*.sec 
--input=/var/log/syslog --tail --syslog=local0 --detach --pid=/var/run/sec.pid
ExecReload=/bin/kill -HUP $MAINPID

[Install]
WantedBy=multi-user.target


By "doesn't work", I mean that SEC shuts down immediately after loading:
2016-05-08T06:39:32.617263-07:00 guru sec[12600]: SEC (Simple Event Correlator) 
2.7.9
2016-05-08T06:39:32.617482-07:00 guru sec[12600]: Changing working directory to 
/
2016-05-08T06:39:32.617548-07:00 guru sec[12600]: Reading configuration from 
/opt/local/etc/sec/cisco.production.conf
2016-05-08T06:39:32.618703-07:00 guru sec[12600]: Opening input file 
/var/log/syslog
2016-05-08T06:39:32.620101-07:00 guru sec[12603]: SIGTERM received: shutting 
down SEC

[SEC loads just fine using a vanilla /etc/init.d script.]

--sk
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Simple-evcorr-users mailing list
Simple-evcorr-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users

Reply via email to