34515c3338
If I call systemctl to shutdown or reboot, the effect is that it does not honor kodi-x11.service's ExecStop= line which results in an unclean exit of kodi and of data loss since kodi writes out some data when it exits. By contrast, calling systemctl to stop the service works as expected. It seems systemd treats processes in user.slice differently that those in system.slice and that removing PAMName=login was to blame for kodi's processes running in user.slice. Discussion: https://lists.freedesktop.org/archives/systemd-devel/2020-December/045713.html https://bbs.archlinux.org/viewtopic.php?id=261684
24 lines
637 B
Plaintext
24 lines
637 B
Plaintext
# override these settings by copying this to /etc/sysusers.d/ and modifying it therein
|
|
|
|
# Type Name ID GECOS Home directory Shell
|
|
g kodi - -
|
|
u kodi - "Kodi User" /var/lib/kodi
|
|
|
|
# supplemental groups
|
|
# see: https://wiki.archlinux.org/index.php/Users_and_groups#Pre-systemd_groups
|
|
m kodi audio
|
|
m kodi input
|
|
m kodi optical
|
|
m kodi video
|
|
|
|
# other groups, see: /usr/lib/sysusers.d/arch.conf or basic.conf
|
|
# m kodi network
|
|
# m kodi power
|
|
# m kodi tty
|
|
# m kodi disk
|
|
# m kodi storage
|
|
|
|
# uncomment the following line for Ubunutu users needing access to /etc/ttyxxxx
|
|
# https://github.com/graysky2/kodi-standalone-service/issues/14
|
|
# m kodi dialout
|