MagicMirror² v2.8.0 is available! For more information about this release, check out this topic.

start motion with pm2



  • trying to start motion with pm2 so i can have continue motion detection to my mirror.Pm2 allready starts and watches my mm.So i disabled motion running as deamon from motion.conf and default/motion file and i can start it manually by sudo motion .I kill it and trying to pm2 start motion and i get many errors like this:

    motion[14421]: [0:motion] [EMG] [ALL] motion_startup: Exit motion, cannot create log file /var/log/motion/motion.log: Permission denied
    

    what iam i doing wrong?



  • @costascontis motion is trying to write it’s log to /var/log, which requires root authority. I think u can change this in motion.conf