New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vdr: revisited version of https://github.com/NixOS/nixpkgs/pull/32050 #52686
Conversation
used same plugin mechanism as kodi does
@GrahamcOfBorg build vdr |
First of all, I expect following error (should be visible in journal):
A good default for sources.conf can be found in ${pkgs.vdr}/share/vdr/conf or http://www.vdr-wiki.de/wiki/index.php/Sources.conf . But the main issue is not having a DVB device. It seems that vdr doesn't start if no DVB device is available. |
Yes I got the very same error message. |
/var/lib/vdr is the place where vdr also stores recording timers in timer.conf and user settings in setup.conf . Vdr can also update channel names and add new channels in channels.conf . All other files are more or less static, but it is not possible to set different config paths . For more information following page gives an good overview http://vdr-wiki.de/wiki/index.php/Struktur . I got this PR on my media PC perfectly running. The tmprule looks good. |
@Mic92 Thanks a lot for helping! Great that you merged the PR! |
|
||
config = mkIf cfg.enable { | ||
systemd.tmpfiles.rules = [ | ||
"d ${cfg.videoDir} 0755 vdr vdr 0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry this should be -:
"d ${cfg.videoDir} 0755 vdr vdr -"
fixed in 044ff3d |
Thanks for the fast fix. Now I understand the 0. ... I hope I can recover my recordings. Nevertheless thanks a lot for bringing the PR into Nixpkgs. |
Motivation for this change
● vdr.service - VDR
Loaded: loaded (/nix/store/m1ncnwmkrwjr06k43psyh3xdr0i83qd7-unit-vdr.service/vdr.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sat 2018-12-22 16:51:35 CET; 19min ago
Process: 15152 ExecStart=/nix/store/7267sbr3ddqaqlmg97g6vgv4h59pppxr-vdr-2.4.0/bin/vdr --video=/srv/vdr/video --config=/var/lib/vdr (code=exited, status=2)
Main PID: 15152 (code=exited, status=2)
Dec 22 16:51:35 turingmachine systemd[1]: vdr.service: Service RestartSec=100ms expired, scheduling restart.
Dec 22 16:51:35 turingmachine systemd[1]: vdr.service: Scheduled restart job, restart counter is at 5.
Dec 22 16:51:35 turingmachine systemd[1]: Stopped VDR.
Dec 22 16:51:35 turingmachine systemd[1]: vdr.service: Start request repeated too quickly.
Dec 22 16:51:35 turingmachine systemd[1]: vdr.service: Failed with result 'exit-code'.
Dec 22 16:51:35 turingmachine systemd[1]: Failed to start VDR.
@ck3d I squashed your commits and added systemd-tmpfile rules to automatically create the video directory on startup. However the services still fails, when
I add
services.vdr.enable = true;
. What else do I need? I do not own any video/dvb-t devices.