Skip to content

Commit ab95935

Browse files
committed
motion: do not limit stop run
1 parent 3c7961e commit ab95935

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

package/prudynt-t/files/motion

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33

44
. /usr/share/common
55

6-
singleton "$0"
6+
# Only enforce singleton for start; stop must always be allowed to run
7+
# even if a start invocation is still in progress (e.g. waiting for video).
8+
[ "$1" != "stop" ] && singleton "$0"
79

810
MOTION_ALARM="/run/motion/motion_alarm"
911
MOTION_ALARM_DIR=$(dirname "$MOTION_ALARM")

0 commit comments

Comments
 (0)