-mk > -mf in systemd service file

This commit is contained in:
dec05eba 2023-10-15 21:03:21 +02:00
parent bae4504370
commit ee5d1d7a27

View File

@ -13,7 +13,7 @@ Environment=FRAMERATE=60
Environment=REPLAYDURATION=60 Environment=REPLAYDURATION=60
Environment=OUTPUTDIR=%h/Videos Environment=OUTPUTDIR=%h/Videos
Environment=MAKEFOLDERS=no 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' 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" -mf $MAKEFOLDERS $ADDITIONAL_ARGS'
KillSignal=SIGINT KillSignal=SIGINT
Restart=on-failure Restart=on-failure
RestartSec=5s RestartSec=5s