We have written a service script for systemd to start an executable on system start up. The service script restarts every 90 seconds on a consistent basis. If we disable the service and run the executable, it runs as expected. We are using Yocto Linux on an Intel Edison.
Here is our startup script:
[Unit]
Description=patsuit
After=network-online.target
Wants=network-online.target
[Service]
WorkingDirectory=/home/root
Type=forking
ExecStart=/bin/PatDownSuitFirmware/PatDown_V3
User=root
Restart=on-failure
RestartSec=10s
[Install]
WantedBy=multi-user.target