8 lines
197 B
Bash
Executable File
8 lines
197 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
printf 'systemctl %s\n' "$*" >>"$STUB_LOG"
|
|
if [[ "${1:-}" == stop ]]; then
|
|
[[ -f "$STUB_STATE/timer_cmd" ]] || exit 5
|
|
rm -f "$STUB_STATE/timer_cmd"
|
|
fi
|