Place in /lib/systemd/system/, runs as root (if you change the pid
location might be able to get it to run as a different user).
sudo sysemctl enable sec.service
change sec file to where you put sec
[Unit]Description=SECAfter=syslog.target
[Service]Type=forkingExecStart=/usr/bin/perl /opt/bin/sec --
conf=/etc/sec.conf --input=/var/log/messages --detach --
pid=/run/sec.pid Restart=alwaysPIDFile=/run/sec.pid
[Install]WantedBy=multi-user.target
James
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Simple-evcorr-users mailing list
Simple-evcorr-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users