Terminate client on ip-down

Help
ankman
2014-05-20
2014-05-20
  • ankman

    ankman - 2014-05-20

    Sometimes my PPP connection, which starts ddclient via the provided script at /etc/ppp/ip-up.d/ddclient , dies. When the connection comes back it spawns an additional ddclient process.

    There is no /etc/ppp/ip-down.d/ddclient on my computer (Debian Jessie). Currently I created one, terminating ddclient hard via "killall ddclient". Because I also cannot find that it would create a lock- or pid file.

    In my opinion ddclient should provide a script in /etc/ppp/ip-down.d/ddclient which terminates itself when the PPP link goes down.

     
  • wimpunk

    wimpunk - 2014-05-20

    Why do you run ddclient as a daemon when starting? I would just run it once once the ifup-event. As far as I know the IP won't change except after an disconnection.

     
    • ankman

      ankman - 2014-05-20

      I don't run ddclient as daemon. Apparently I do so... I will disable the start script on boot and see what happens.

      Sorry for that.

       

Log in to post a comment.