Исправление ksim, (текущая версия) :
мой минимальный рабочий пример такой: camera@.service:
[Unit]
Description=Collection screenshots for camera number %i
[Service]
Type=oneshot
KillMode=process
ExecStart=/opt/scripts/get_screen.sh %i
camera@.timer
[Unit]
Description=timer screenshots for camera number %i
[Timer]
AccuracySec=1us
OnCalendar=*:*:0/3
[Install]
WantedBy=timers.target
script
#!/bin/bash
/usr/bin/nohup /opt/scripts/get_screen_child.sh &>> /tmp/out.txt &
get_screen_child рандомно висящий до 10 секунд
Исходная версия ksim, :
мой минимальный рабочий пример такой: camera@.service:
[Unit]
Description=Collection screenshots for camera number %i
[Service]
Type=oneshot
KillMode=process
ExecStart=/opt/scripts/get_screen.sh %i
camera@.timer
[Unit]
Description=timer screenshots for camera number %i
[Timer]
AccuracySec=1us
OnCalendar=*:*:0/3
[Install]
WantedBy=timers.target
script
#!/bin/bash
nohup /opt/scripts/get_screen_child.sh &>> /tmp/out.txt &
get_screen_child рандомно висящий до 10 секунд