Portál AbcLinuxu, 18. července 2025 00:02
Řešení dotazu:
local-user-resume.service [Unit] Description=User resume actions After=suspend.target Wants=local-system-resume.service Before=local-system-resume.service [Service] User=foobar Type=simple ExecStart=/home/foobar/script.sh [Timer] OnCalendar=daily Persistent=true [Install] WantedBy=suspend.target
#!/bin/bash if find /var/lib/local-user-resume -mmin +1380 2>&1 >/dev/null then touch /var/lib/local-user-resume /home/foobar/script.sh fi
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.