Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution is Debian 7.7.
I have installed minidlna, but I have problem with the start
of minidlna at the boot time, although there are correct links
in rc?.d directories.
After boot I can start minidlna without any problem. Simple
sudo /etc/init.d/minidlna start
will do the job. After this manual start, minidlna is working ok.
are any error messages logged to indicate why minidlna is failing to start? Also, can you really confirm that the links really are correct. Eg the output of:
Code:
ls -l /etc/rc*.d/*minidlna
runlevel
Finally, can you confirm that you are using sysvinit?
That is peculiar. I suggest you increase the logging verbosity. Eg in your /etc/minidlna.conf set
Code:
log_level=debug
Quote:
Originally Posted by pythagorasmk
> Can you confirm that you are able to start it using invoke-rc.d?
yes I can confirm that.
Ok. Is there anything out of the ordinary about your setup? Are you using the standard minidlna from wheezy? Nothing strange in your /etc/default/minidlna or /etc/minidlna.conf?
That is peculiar. I suggest you increase the logging verbosity. Eg in your /etc/minidlna.conf set
Code:
log_level=debug
Ok. Is there anything out of the ordinary about your setup? Are you using the standard minidlna from wheezy? Nothing strange in your /etc/default/minidlna or /etc/minidlna.conf?
Evo2.
Here is the content of /var/log/minidlna.log, after manual start with 'invoke-rc.d minidlna start' and after I have added log_level=debug:
[2014/11/05 03:35:07] minidlna.c:898: warn: Starting MiniDLNA version 1.0.24 [SQLite 3.7.13].
[2014/11/05 03:35:07] inotify.c:195: warn: WARNING: Inotify max_user_watches [8192] is low or close to the number of used watches [2] and I do not have permission to increase this limit. Please do so manually by writing a higher value into /proc/sys/fs/inotify/max_user_watches.
[2014/11/05 03:35:07] minidlna.c:1006: warn: HTTP listening on port 8200
I am using the standard minidlna from wheezy. The only changes in minidlna.conf are media_dir and friendly_name. There are no changes in /etc/default/minidlna.
ok, it seems to start normally. This is somewhat puzzling to me. Do you see any messages on the console when you when you start it, or at boot? If not it may be worthwhile setting "VERBOSE=yes" in /etc/default/rcS and trying again.
> This is somewhat puzzling to me.
even more for me
> Do you see any messages on the console when you when you start it, or at boot?
No.
> If not it may be worthwhile setting "VERBOSE=yes" in /etc/default/rcS and trying again.
I have set "VERBOSE=yes" but there are no changes, either in messages when I am starting
minidlna, either in the log file.
I think you need to work out if /etc/init.d/minidlna is actually being called at boot time and then failing to start the daemon for some reason, or if it is not being called. I'm don't know the best way to do this...
> I think you need to work out if /etc/init.d/minidlna is actually being called at boot time ...
I have added 'echo "bla bla ..." > /aaa.txt' at the beginning of the /etc/init.d/minidlna, and after reboot there was a file /aaa.txt, so the script is called at boot time.
> ... and then failing to start the daemon for some reason
There must be some service or somethig else that /etc/init.d/minidlna is expecting to be running when the script is called, but that service is not started for some reason. I don't know how to check this.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.