add bundle:systemd-timers
This commit is contained in:
parent
2a3a26c333
commit
0599c4dae0
7 changed files with 145 additions and 0 deletions
10
bundles/systemd-timers/files/systemd-timer-monitored
Normal file
10
bundles/systemd-timers/files/systemd-timer-monitored
Normal file
|
@ -0,0 +1,10 @@
|
|||
#!/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"
|
Loading…
Add table
Add a link
Reference in a new issue