Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I'm running Debian Squeeze (6.0.1) on a NAS (LinkStation, mipsel). I installed minidlna from unstable and noticed the daemon won't start because it can't create /run/minidlna.

After a little googling I found http://wiki.debian.org/ReleaseGoals/RunDirectory. This somewhat explains what's happening, and for now I just made a symlink to make stuff work:

ln -s /var/run /run

I'm a little afraid this isn't a good way to solve the problem. What would be the proper way of getting /run on Debian Squeeze? What problems could be caused by just symlinking like I did?

share|improve this question
add comment

1 Answer

Why do you need to adapt your system to that app?

Wouldn't be more logical to adapt that "minidlna" (whatever is it) to Debian?

Probably you just need to edit the minidlna start script (it will be located at /etc/init.d/ if it is a daemon) to use the system's /var/run rather than creating a /run symlink.

I understand from your question that "minidlna" is a deb package. Then once you solved the issue in the init script, report your fix back to the package maintainer.

share|improve this answer
1  
the OP installed an unstable package on a stable system, so this does not qualify as a bug. There's no minidlna package for stable, no backport either. –  sr_ Mar 7 '12 at 16:21
    
but there should be a maintainer of that package if it is a package. And I'm sure that person would love to hear feedback for his work. By no means I've said that that could be a bug in debian. But indeed there's a bug in the package as it is. –  hmontoliu Mar 7 '12 at 16:25
    
You're right, that's probably a better way to get a healthy Debian stable system...(not sure if there's a reason against the stable package, though) -- the package in PTS –  sr_ Mar 7 '12 at 16:42
    
@hmontoliu: The problem is just what sr_ said in their first comment. In unstable/testing /run must be used, while in stable it doesn't yet exist. I can, of course edit the init script, but that's bad practice on APT-installed packages. Have a +1 for pointing out I should rather do this than symlink /var/run—but I'm still looking for a more proper solution. This would get very clumsy if I had a lot of testing/unstable packages. –  dancek Mar 8 '12 at 6:20
    
My above comment is no longer true; there's at least an unofficial minidlna package for Squeeze now. –  sr_ Aug 6 '12 at 7:31
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.