Open geuma opened 11 years ago
This is not (allwasy) working on the ReadyNAS 314... ... sometimes a Zombie stays half alive (see the "Z" in the last line)... ... even a "kill -9" doesn't help!
root@ReadyNAS:~# ps -efa | grep DLNA root 2704 1 0 14:11 pts/0 00:00:47 /usr/bin/perl ./pDLNA.pl -f /etc/pdlna.conf root 8996 2749 0 17:36 pts/2 00:00:00 grep DLNA root@ReadyNAS:~#/etc/init.d/rc.pDLNA restart Stopping pDLNA ... Starting pDLNA ... root@ReadyNAS:~# Cannot bind to Multicast socket: Address already in use Going to terminate pDLNA/v0.64.2 on linux/3.2.0-4-amd64 with FriendlyName 'pDLNA v0.64.2 on ReadyNAS' ...
root@ReadyNAS:~#ps -efa | grep DLNA
root 2704 1 0 14:11 pts/0 00:00:47 [pDLNA.pl]
On FreeBSD, there seems to be a problem shutting down pDLNA. The following error message will occur:
[root@mediaserver ~]# /etc/rc.d/rc.pDLNA start Starting pDLNA ... [root@mediaserver ~]# /etc/rc.d/rc.pDLNA stop [root@mediaserver ~]# /etc/rc.d/rc.pDLNA start Starting pDLNA ... [root@mediaserver ~]# Cannot bind to Multicast socket: Address already in use Going to terminate pDLNA/v0.63.0b on freebsd/9.0-release with FriendlyName 'pDLNA v0.63.0b on mediaserver' ...
At the moment there is a workaround for this problem. Just geht es listing of the processes, kill the pDLNA process, remove the PID file (if any) and use the initscript afterwards again to start pDLNA:
[root@mediaserver ~]# ps PID TT STAT TIME COMMAND 1354 v0 Is 0:00.04 login pam 1355 v1 Is+ 0:00.00 /usr/libexec/getty Pc ttyv1 1356 v2 Is+ 0:00.00 /usr/libexec/getty Pc ttyv2 1357 v3 Is+ 0:00.00 /usr/libexec/getty Pc ttyv3 1358 v4 Is+ 0:00.00 /usr/libexec/getty Pc ttyv4 1359 v5 Is+ 0:00.00 /usr/libexec/getty Pc ttyv5 1360 v6 Is+ 0:00.00 /usr/libexec/getty Pc ttyv6 1361 v7 Is+ 0:00.00 /usr/libexec/getty Pc ttyv7 1411 0 Ss 0:00.14 -bash (bash) 2246 0 S 0:01.60 /usr/bin/perl ./pDLNA.pl -f /etc/pdlna.conf (perl5.12.4) 2264 0 R+ 0:00.01 ps [root@mediaserver ~]# kill -9 2246 [root@mediaserver ~]# rm /var/run/pdlna.pid [root@mediaserver ~]# /etc/rc.d/rc.pDLNA start Starting pDLNA ...