I forgot to send the same stuff after "fixing" it by using init.d scripts.

If I use systemctl to stop the daemon it will still fail:

# systemctl stop mpd.service
Warning: Stopping mpd.service, but it can still be activated by:
  mpd.socket

# /etc/init.d/mpd start

Now netstat shows the same results as before.

But if I use the old "service" script to stop it:

# service mpd stop

And then start it via the init.d script:

# /etc/init.d/mpd start
[ ok ] Starting mpd (via systemctl): mpd.service.

I get the ports correctly opened:

# netstat -putan | grep mpd
tcp        0      0 0.0.0.0:8000            0.0.0.0:*               LISTEN      
3221/mpd            
tcp        0      0 0.0.0.0:6600            0.0.0.0:*               LISTEN      
3221/mpd            
tcp6       0      0 :::6600 

# lsof | grep 6600
mpd       3221             mpd   10u     IPv6              74293        0t0     
   TCP *:6600 (LISTEN)
mpd       3221             mpd   11u     IPv4              74294        0t0     
   TCP *:6600 (LISTEN)
io        3221 3246        mpd   10u     IPv6              74293        0t0     
   TCP *:6600 (LISTEN)
io        3221 3246        mpd   11u     IPv4              74294        0t0     
   TCP *:6600 (LISTEN)
player    3221 3247        mpd   10u     IPv6              74293        0t0     
   TCP *:6600 (LISTEN)
player    3221 3247        mpd   11u     IPv4              74294        0t0     
   TCP *:6600 (LISTEN)
decoder   3221 3248        mpd   10u     IPv6              74293        0t0     
   TCP *:6600 (LISTEN)
decoder   3221 3248        mpd   11u     IPv4              74294        0t0     
   TCP *:6600 (LISTEN)
output:Lu 3221 3249        mpd   10u     IPv6              74293        0t0     
   TCP *:6600 (LISTEN)
output:Lu 3221 3249        mpd   11u     IPv4              74294        0t0     
   TCP *:6600 (LISTEN)
output:Lu 3221 3250        mpd   10u     IPv6              74293        0t0     
   TCP *:6600 (LISTEN)
output:Lu 3221 3250        mpd   11u     IPv4              74294        0t0     
   TCP *:6600 (LISTEN)


-- 
Without us [Free Software developers], people would study computer science
and programming without ever having seen a real program in its entirety.
That's like becoming writers without ever having read a complete book.
  Matthias Ettrich, founder of the KDE project.
  http://www.efytimes.com/efytimes/25412/news.htm

Lisandro Damián Nicanor Pérez Meyer
http://perezmeyer.com.ar/
http://perezmeyer.blogspot.com/

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to