process_id_file
- Type: String
- Range / Valid values: Max 4095 characters
- Default: Not defined
- Group: System Processing
File to store the process ID, also called pid file. Recommended value when used: /var/run/motion.pid, File to store the process ID, also called pid file. Recommended value when used: /var/run/motion.pid
When Motion is started and this option is defined, Motion creates a file containing the process ID if the main Motion thread. This can be used by scripts to identify the process number for example when you want to stop the process.
If you want to run multiple instances of Motion make sure to use different file names for the process ID file. The process ID file (pid file) can also be specified with the -p command line switch.