bundlewrap/bundles/systemd-timers/files/systemd-timer-monitored

11 lines
183 B
Text
Raw Normal View History

2022-02-06 12:39:52 +00:00
#!/bin/sh
timer="$1"
shift
# Simple wrapper script that stores the exit code of a command into a file
"$@"
exitcode=$?
echo "$exitcode" > "/var/lib/systemd-timer-monitored/$timer"