I want to dynamically change on_event_start value while the motion service is running. Is there a way to reload the motion.conf file without restarting the service?


In addition to the answer from @p4ulmac you get the pid with ps -e | grep motion. If you like to control your services with systemd then there is no need to handle with the pid. You can simply:

rpi ~$ sudo systemctl reload motion.service

and check with:

rpi ~$ systemctl status motion.service

Based on the following page, Motion Guide - Getting It Running: Signals (sent with e.g. kill command)

It would appear that you can send the following command;

kill -s SIGHUP pid

where pid is the pid of the motion instance you wish to update with the new config. This will refresh/reload the config to the running motion instance.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.