I'm trying to manager qemu with systemd. If qemu crashes, it can be restart automatically. I have the following unit file:[Unit]Description=vm managerAfter=network.targetBefore=shutdown.target reboot.target poweroff.target halt.target[Service]Type=forkingExecStart=/root/vm/vm-manager.sh start-vmExecStop=/root/vm/vm-manager.sh stop-vmKillSignal=SIGCONTPIDFile=/root/vm/run/pidWatchdogSec=30sRestart=on-failure[Install]WantedBy=multi-user.targetI didn't call sd_notify(0, WATCHDOG=1) in my application, but the service didn't move to 'failed' state after 30 seconds. I have two questions:In my opinion, this service should be restarted after 30 seconds, why it keeps running until I kill or stop it?When I kill qemu manually(I take qemu process as the main process), the service restart immediately, without waiting.Besides the two questions, if there's anything wrong or suggestion about the unit file, please raise it freely.Thanks!
Systemd: service doesn't restart with WatchdogSec option set
systemd;watchdog