This commit is contained in:
2026-06-17 04:55:15 +03:00
commit da3d9ef7b5
74 changed files with 5307 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
#!/usr/bin/env bash
#
# bt-service - restart/start/stop the ButtonTask systemd units.
# Invoked through sudo by the web configurator (tightly scoped).
set -euo pipefail
ACTION="${1:-}"
case "$ACTION" in
start|stop|restart)
systemctl "$ACTION" buttontask-web buttontask
;;
*)
echo "usage: bt-service {start|stop|restart}" >&2
exit 2
;;
esac