Linux - Software This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
11-04-2014, 06:40 PM
|
#1
|
LQ Newbie
Registered: Oct 2014
Posts: 9
Rep:
|
minidlna boot issue
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.
|
|
|
11-04-2014, 07:12 PM
|
#2
|
LQ Guru
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,726
|
Hi,
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?
Evo2.
|
|
|
11-04-2014, 07:27 PM
|
#3
|
LQ Newbie
Registered: Oct 2014
Posts: 9
Original Poster
Rep:
|
Hi,
Output of ls -l /etc/rc*.d/*minidlna is:
lrwxrwxrwx 1 root root 18 Nov 4 16:32 /etc/rc0.d/K01minidlna -> ../init.d/minidlna
lrwxrwxrwx 1 root root 18 Nov 4 16:32 /etc/rc1.d/K01minidlna -> ../init.d/minidlna
lrwxrwxrwx 1 root root 18 Nov 4 16:32 /etc/rc2.d/S22minidlna -> ../init.d/minidlna
lrwxrwxrwx 1 root root 18 Nov 4 16:32 /etc/rc3.d/S22minidlna -> ../init.d/minidlna
lrwxrwxrwx 1 root root 18 Nov 4 16:32 /etc/rc4.d/S22minidlna -> ../init.d/minidlna
lrwxrwxrwx 1 root root 18 Nov 4 16:32 /etc/rc5.d/S22minidlna -> ../init.d/minidlna
lrwxrwxrwx 1 root root 18 Nov 4 16:32 /etc/rc6.d/K01minidlna -> ../init.d/minidlna
runlevel is 2.
I don'd know what you mean by sysvinit. I am using init version installed by debian.
Pythagorasmk
|
|
|
11-04-2014, 07:55 PM
|
#4
|
LQ Guru
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,726
|
Hi,
Quote:
Originally Posted by pythagorasmk
Output of ls -l /etc/rc*.d/*minidlna is:
lrwxrwxrwx 1 root root 18 Nov 4 16:32 /etc/rc0.d/K01minidlna -> ../init.d/minidlna
lrwxrwxrwx 1 root root 18 Nov 4 16:32 /etc/rc1.d/K01minidlna -> ../init.d/minidlna
lrwxrwxrwx 1 root root 18 Nov 4 16:32 /etc/rc2.d/S22minidlna -> ../init.d/minidlna
lrwxrwxrwx 1 root root 18 Nov 4 16:32 /etc/rc3.d/S22minidlna -> ../init.d/minidlna
lrwxrwxrwx 1 root root 18 Nov 4 16:32 /etc/rc4.d/S22minidlna -> ../init.d/minidlna
lrwxrwxrwx 1 root root 18 Nov 4 16:32 /etc/rc5.d/S22minidlna -> ../init.d/minidlna
lrwxrwxrwx 1 root root 18 Nov 4 16:32 /etc/rc6.d/K01minidlna -> ../init.d/minidlna
runlevel is 2.
|
That seems to be ok. Did you check /var/log/minidlna.log? Also, does
Quote:
Originally Posted by pythagorasmk
I don'd know what you mean by sysvinit. I am using init version installed by debian.
|
Ok, then presumably you are using sysvinit. Can you confirm that you are able to start it using invoke-rc.d? Eg
Code:
invoke-rc.d minidlna start
Evo2.
|
|
|
11-04-2014, 08:14 PM
|
#5
|
LQ Newbie
Registered: Oct 2014
Posts: 9
Original Poster
Rep:
|
> Did you check /var/log/minidlna.log?
Log file is empty.
> Can you confirm that you are able to start it using invoke-rc.d?
yes I can confirm that.
Pythagorasmk
|
|
|
11-04-2014, 08:23 PM
|
#6
|
LQ Guru
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,726
|
Hi,
Quote:
Originally Posted by pythagorasmk
Log file is empty.
|
That is peculiar. I suggest you increase the logging verbosity. Eg in your /etc/minidlna.conf set
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?
Evo2.
|
|
|
11-04-2014, 08:46 PM
|
#7
|
LQ Newbie
Registered: Oct 2014
Posts: 9
Original Poster
Rep:
|
Quote:
Originally Posted by evo2
Hi,
That is peculiar. I suggest you increase the logging verbosity. Eg in your /etc/minidlna.conf set
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.
|
|
|
11-04-2014, 09:11 PM
|
#8
|
LQ Guru
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,726
|
Hi,
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.
Evo2.
|
|
|
11-04-2014, 09:33 PM
|
#9
|
LQ Newbie
Registered: Oct 2014
Posts: 9
Original Poster
Rep:
|
> 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.
|
|
|
11-04-2014, 10:09 PM
|
#10
|
LQ Guru
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,726
|
Hi,
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...
Evo2.
|
|
|
11-05-2014, 10:42 AM
|
#11
|
LQ Newbie
Registered: Oct 2014
Posts: 9
Original Poster
Rep:
|
Hi,
> 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.
Pythagorasmk
|
|
|
All times are GMT -5. The time now is 07:04 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|