44ed658e1b
streamline maintenance of Arch ARM packages/single source of files
47 lines
2.2 KiB
Groff
47 lines
2.2 KiB
Groff
.\" Text automatically generated by txt2man
|
|
.TH kodi.service 1 "13 March 2021" "" ""
|
|
.SH NAME
|
|
\fBkodi.service \fP- Systemd service unit to run Kodi in standalone mode without the need for a DE.
|
|
\fB
|
|
.SH DESCRIPTION
|
|
|
|
.SH NOTES ON SYSTEM SHUTDOWN/REBOOT
|
|
Be aware that this service runs Kodi in systemd's user.slice not in the system.slice. In order to have Kodi gracefully exit, the system should be called to shutdown or to reboot using the respective Kodi actions not by a call to systemctl.
|
|
.PP
|
|
This is NOT recommended:
|
|
.PP
|
|
.nf
|
|
.fam C
|
|
# systemctl reboot
|
|
|
|
.fam T
|
|
.fi
|
|
If you do reboot or shutdown via a call to systemctl, this will result in systemd killing the cg too quickly and data loss to your Kodi profile will occur. When Kodi exits cleanly, it will save GUI settings, media settings, Kodi uptime etc. In principal this is no different than data loss occurring from a user doing work when a sysadmin issues a reboot command without prior warning. While it is possible to run Kodi in systemd's system.slice instead, doing so makes it difficult to use USB mounts within Kodi and to use pulseaudio for Kodi sessions.
|
|
.SH RECOMMENDED METHODS TO SHUTDOWN/REBOOT
|
|
Here are several options:
|
|
.IP \(bu 3
|
|
Select the corresponding option under Power menu in the Kodi GUI.
|
|
.IP \(bu 3
|
|
Use the official Android/iOS remote app.
|
|
.IP \(bu 3
|
|
If a CLI option is preferred, use kodi-send to issue the command to reboot or shutdown like so:
|
|
.PP
|
|
.nf
|
|
.fam C
|
|
$ kodi-send -a "Reboot"
|
|
$ kodi-send -a "ShutDown()"
|
|
|
|
.fam T
|
|
.fi
|
|
Note that kodi-send is provided by the kodi-xxx-eventclients package where xxx is either, rpi, rpi-legacy, or git depending on which package group you installed.
|
|
.SH PASSING ENVIRONMENT VARIABLES TO THE SERVICE
|
|
Should the need arise, one can pass environment variables to the service by creating /etc/conf.d/kodi-standalone and populating it with the needed variables.
|
|
.SH CONTRIBUTE
|
|
Users wishing to contribute to this code, should fork and send a pull request. Source is freely available on the project page linked below.
|
|
.SH BUGS
|
|
Discover a bug? Please open an issue on the project page linked below.
|
|
.SH ONLINE
|
|
Project page: https://github.com/graysky2/kodi-standalone-service
|
|
.SH AUTHOR
|
|
graysky (graysky AT archlinux DOT us)
|