I would like to have a service which behaves differently on first run and on restart of service. Is this possible with systemd? (I use systemd in my embedded os).
I tried with ExecReload and ExecStart, but ExecReload is run only when I use command "systemctl restart". On the other hand ExecStart is run after service Restart ( I have Restart=on-failure and RestartSec=5).