aboutsummaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2023-10-15 18:11:47 +0200
committerdec05eba <dec05eba@protonmail.com>2023-10-15 18:12:33 +0200
commitbae4504370f335d64697a8d114174134b44d5f98 (patch)
tree919f6efac508ed149cd62d76f5465cffc01ef6fe /extra
parent3ae89c8d7c25f23a70bdec34c6e43cfe916f2d0c (diff)
Install systemd service in install script, skip empty audio device
Stop systemd service with SIGINT
Diffstat (limited to 'extra')
-rw-r--r--extra/gpu-screen-recorder.service1
1 files changed, 1 insertions, 0 deletions
diff --git a/extra/gpu-screen-recorder.service b/extra/gpu-screen-recorder.service
index b644bc8..7f1cbb1 100644
--- a/extra/gpu-screen-recorder.service
+++ b/extra/gpu-screen-recorder.service
@@ -14,6 +14,7 @@ Environment=REPLAYDURATION=60
Environment=OUTPUTDIR=%h/Videos
Environment=MAKEFOLDERS=no
ExecStart=/bin/sh -c 'AUDIO="${AUDIO_DEVICE:-$(pactl get-default-sink).monitor}"; gpu-screen-recorder -v no -w $WINDOW -c $CONTAINER -q $QUALITY -k $CODEC -ac $AUDIO_CODEC -a "$AUDIO" -f $FRAMERATE -r $REPLAYDURATION -o "$OUTPUTDIR" -mk $MAKEFOLDERS $ADDITIONAL_ARGS'
+KillSignal=SIGINT
Restart=on-failure
RestartSec=5s