UDM Pro - Service does not start
jkl2e opened this issue · 1 comments
I installed your service on my UDM-Pro.
The Log files changed, so I edited the regex in the config file.
But the Service seems to have some errors while booting...
May 11 08:33:53 ubnt systemd[1]: unifi-motion.service: Service RestartSec=10s expired, scheduling restart.
May 11 08:33:53 ubnt systemd[1]: unifi-motion.service: Scheduled restart job, restart counter is at 5719.
May 11 08:33:53 ubnt systemd[1]: Stopped Log file watcher to post unifi-video motion to domoticz using MQTT.
May 11 08:33:53 ubnt systemd[1]: Started Log file watcher to post unifi-video motion to domoticz using MQTT.
May 11 08:33:53 ubnt systemd[17441]: unifi-motion.service: Failed to determine user credentials: No such process
May 11 08:33:53 ubnt systemd[17441]: unifi-motion.service: Failed at step USER spawning /usr/local/bin/unifi-motion: No such process
May 11 08:33:53 ubnt systemd[1]: unifi-motion.service: Main process exited, code=exited, status=217/USER
May 11 08:33:53 ubnt systemd[1]: unifi-motion.service: Failed with result 'exit-code'.
May 11 08:34:03 ubnt systemd[1]: unifi-motion.service: Service RestartSec=10s expired, scheduling restart.
May 11 08:34:03 ubnt systemd[1]: unifi-motion.service: Scheduled restart job, restart counter is at 5720.
May 11 08:34:03 ubnt systemd[1]: Stopped Log file watcher to post unifi-video motion to domoticz using MQTT.
May 11 08:34:03 ubnt systemd[1]: Started Log file watcher to post unifi-video motion to domoticz using MQTT.
May 11 08:34:03 ubnt systemd[1]: unifi-motion.service: Main process exited, code=exited, status=217/USER
May 11 08:34:03 ubnt systemd[1]: unifi-motion.service: Failed with result 'exit-code'.
May 11 08:34:14 ubnt systemd[1]: unifi-motion.service: Service RestartSec=10s expired, scheduling restart.
May 11 08:34:14 ubnt systemd[1]: unifi-motion.service: Scheduled restart job, restart counter is at 5721.
May 11 08:34:14 ubnt systemd[1]: Stopped Log file watcher to post unifi-video motion to domoticz using MQTT.
Which user is used to run this service? Do I have to create dhis user manualy?
Found it :)
useradd -M unifi-video (Create User without Home dir)
usermod -L unifi-video (Prevent User from Login)