Hi, I built Yocto systemd Linux running on a device 7 / 24, it is hard to access the device, so my application services are running by bash script in loop sleep 1 minute, the service and scripts worked fine, I don't want the application service stopped for any reasons, I searched on Internet, there are many different examples for configuring service file to restart it on failure, but most statements are conflicted, what is the best way to let systemd restart my application services when the scripts stops for Yocto systemd OS?
[Unit] After=multi-user.target [Service] Type=simple RemainAfterExit=no Restart=always RestartSec=120s ExecStart=/data/bin/apploop60seconds.sh [Install] WantedBy=multi-user.target Thank you. Kind regards, - jh ------------------------------ "A man can fail many times, but he isn't a failure until he begins to blame somebody else." -- John Burroughs
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#49183): https://lists.yoctoproject.org/g/yocto/message/49183 Mute This Topic: https://lists.yoctoproject.org/mt/73140131/21656 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
