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