File: //lib/systemd/system/eig_performance.service
[Unit]
Description=Start/Stops eig_performance
After=syslog.target network.target eig_limits.service
Before=sshd.service
[Service]
Type=simple
ExecStartPre=/usr/bin/sh -c '/usr/bin/test -d /sys/fs/cgroup/USERS || ( /bin/echo "eig_performance.service: cannot find /sys/fs/cgroup/USERS, is this kernel patched?" && exit 1 )'
Restart=on-failure
RestartSec=5
ExecStart=/opt/eig_linux/bin/eig_performance.pl
ExecStop=/usr/bin/kill -SIGABRT $MAINPID
[Install]
WantedBy=multi-user.target