added presets
This commit is contained in:
@@ -5,6 +5,15 @@
|
||||
set -euo pipefail
|
||||
|
||||
ACTION="${1:-}"
|
||||
|
||||
if [ -z "${BT_SERVICE_DETACHED:-}" ]; then
|
||||
unit="buttontask-service-$(date +%s)"
|
||||
exec systemd-run --no-block --collect \
|
||||
"--unit=${unit}" \
|
||||
"--setenv=BT_SERVICE_DETACHED=1" \
|
||||
"$0" "$@"
|
||||
fi
|
||||
|
||||
case "$ACTION" in
|
||||
start|stop|restart)
|
||||
systemctl "$ACTION" buttontask-web buttontask
|
||||
|
||||
Reference in New Issue
Block a user