We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c7961e commit ab95935Copy full SHA for ab95935
package/prudynt-t/files/motion
@@ -3,7 +3,9 @@
3
4
. /usr/share/common
5
6
-singleton "$0"
+# 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"
9
10
MOTION_ALARM="/run/motion/motion_alarm"
11
MOTION_ALARM_DIR=$(dirname "$MOTION_ALARM")
0 commit comments