Problems starting rygel.service with Systemd
When wanting to enable rygel.service with systemctl enable rygel, I'm told that it doesn't exist. So, I copy the file from Gitlab to /usr/lib/systemd/system and do a systemctl start rygel. I get the following output from systemctl status rygel:
systemctl status rygel
● rygel.service - Rygel DLNA server
Loaded: loaded (/usr/lib/systemd/system/rygel.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2020-09-09 22:25:16 EEST; 5s ago
Process: 4848 ExecStart=/usr/bin/rygel (code=exited, status=217/USER)
Main PID: 4848 (code=exited, status=217/USER)
Sep 09 22:25:16 instant systemd[1]: Started Rygel DLNA server.
Sep 09 22:25:16 instant systemd[4848]: rygel.service: Failed to determine user credentials: No such process
Sep 09 22:25:16 instant systemd[4848]: rygel.service: Failed at step USER spawning /usr/bin/rygel: No such process
Sep 09 22:25:16 instant systemd[1]: rygel.service: Main process exited, code=exited, status=217/USER
Sep 09 22:25:16 instant systemd[1]: rygel.service: Failed with result 'exit-code'.
Then I check to content of the file and I see that user and group is rygel and change them to my user. When I reboot the output of systemctl status rygel is showing that it's active, but there is no indication that it has harvested the directories set. Only if I do a systemctl restart rygel does it harvest.
Can this be fixed somehow to not have to do it manually? Maybe it is started too early? After=syslog.target -- is this ok?
Thanks, Robert
Edited by Robert Sárközi