aboutsummaryrefslogtreecommitdiff
blob: 908c23ee2d6d4bdf2a826e8fefd44b3347df8130 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Instructions for usage and configuration with systemd


Systemd support has been implemented by re-using all the OpenRC configuration
files of VDR and its plugins located under /etc/conf.d/ even if OpenRC is not installed
at all.

Things which are configured differently:

- Starting the VDR daemon under a user different than 'vdr'. Just as when running under OpenRC, the
  gentoo-vdr-scripts can be configured to run VDR either as user 'vdr' or as user 'root'.
  The difference is that under systemd, the setting START_VDR_AS_ROOT in /etc/conf.d/vdr is
  ignored on purpose, to let the configuration be done "the systemd way".

- The default is to run as user 'vdr'. If running as 'root' is desired, uncomment the 'User=root'
  key under the [Service] section in the file
  /etc/systemd/system/vdr.service.d/00-gentoo-vdr-user.conf commented "Starting VDR as user 'root'"

- *If* the plugin 'dbus2vdr' is used, the user who owns the vdr-dbus-service also has to be set to
  'root' in /etc/dbus-1/system.d/de.tvdr.vdr.conf if running VDR as user 'root';

- Starting the VDR daemon on a terminal (/dev/tty8 for examle). The settings in /etc/conf.d/vdr are
  ignored, but this can be achieved by uncommenting the respective entries commented "Starting VDR on
  terminal" under BOTH sections [Unit] AND [Service] in the file
  /etc/systemd/system/vdr.service.d/00-gentoo-vdr-user.conf
  This becomes even necessary if using the plugin vdr-skincurses.


Finally, in order to start the VDR daemon under systemd manually, execute:

systemctl start vdr

and if the deamon should be started on every bootup of the system, it has to be enabled:

systemctl enable vdr