2023-01-07, 10:36
just to say that i solved my issue
I am not sure it was the cleanest way, but basically i removed the crontab entry and created 2 --user systemd units, one for kodi and one for steamlink.
each entry has a ExecStopPost to launch the other application, so basically if i exit from kodi steamlink starts and vice versa.
the only difference is that kodi has also an WantedBy=multi-user.target so that it gets started on login (done automatically)
i leave the two systemd units here in case this can be of any help
M
kodi.service:
steamlink.service:
I am not sure it was the cleanest way, but basically i removed the crontab entry and created 2 --user systemd units, one for kodi and one for steamlink.
each entry has a ExecStopPost to launch the other application, so basically if i exit from kodi steamlink starts and vice versa.
the only difference is that kodi has also an WantedBy=multi-user.target so that it gets started on login (done automatically)
i leave the two systemd units here in case this can be of any help
M
kodi.service:
systemd:[Unit]
Description=Kodi
[Service]
ExecStart=/usr/bin/kodi
ExecStopPost=/usr/bin/systemctl --user start steamlink.service
[Install]
WantedBy=multi-user.target
steamlink.service:
systemd:[Unit]
Description=Steamlink
[Service]
ExecStart=/usr/bin/steamlink
ExecStopPost=/usr/bin/systemctl --user start kodi.service