Версия пакета: motion-4.5.1-alt1.x86_64 При попытке запустить сервис motion возникает ошибка: systemd[1]: Started motion.service - Motion - monitor live video, trigger responses, record video/stills.. (sh)[2799]: motion.service: Failed to determine user credentials: No such process (sh)[2799]: motion.service: Failed at step USER spawning /bin/sh: No such process systemd[1]: motion.service: Main process exited, code=exited, status=217/USER systemd[1]: motion.service: Failed with result 'exit-code'. Потому что сервис запускается от пользователя: # systemctl cat motion | grep User User=motion Но при установке пакета этот пользователь не создаётся: # id motion id: «motion»: такого пользователя нет
Актуально для motion-4.7.1-alt1 (задание https://packages.altlinux.org/tasks/405951/): в spec по-прежнему нет создания пользователя (ни useradd, ни sysusers), а в юните motion.service стоит User=motion. Сервис в таком виде стартовать не может.