[8.161][BUG][FIXED] l2tpd starts to early after pppoe reconnect and dies

After a pppoe reconnect the l2tpd starts before the ipsec subsystem is up and running. Thats why the selfmonitoring
restarts the l2tpd and sends the notification:

[INFO-148] L2TP-over-IPsec daemon not running - restarted

Hier are some logs:


ipsec.log:2011:03:21-05:00:10 tallon openl2tpd[31142]: Exiting
ipsec.log:2011:03:21-05:00:10 tallon openl2tpd[31142]: Cleaning up before exiting
ipsec.log:2011:03:21-05:00:10 tallon openl2tpd[31142]: Unloading plugin /usr/lib/openl2tp/ppp_unix.so
ipsec.log:2011:03:21-05:00:10 tallon pluto[30877]: shutting down
ipsec.log:2011:03:21-05:00:10 tallon pluto[30877]: forgetting secrets
ipsec.log:2011:03:21-05:00:10 tallon pluto[30877]: "S_REF_IpsL2t1_1": deleting connection
ipsec.log:2011:03:21-05:00:10 tallon pluto[30877]: "S_REF_IpsL2t1_0": deleting connection
...
ipsec.log:2011:03:21-05:00:25 tallon pluto[3253]: added connection description "S_REF_IpsL2t1_0"
ipsec.log:2011:03:21-05:00:25 tallon pluto[3253]: added connection description "S_REF_IpsL2t1_1"
ipsec.log:2011:03:21-05:00:38 tallon openl2tpd[3548]: Start, trace_flags=00000000
ipsec.log:2011:03:21-05:00:38 tallon openl2tpd[3548]: OpenL2TP V1.6, (c) Copyright 2004,2005,2006,2007,2008 Katalix Systems Ltd.
ipsec.log:2011:03:21-05:00:38 tallon openl2tpd[3548]: Loading plugin /usr/lib/openl2tp/ppp_unix.so, version V1.5
ipsec.log:2011:03:21-05:00:38 tallon openl2tpd[3548]: Using config file: /etc/openl2tpd.conf

mdw-debug.log:2011:03:21-05:00:24 asg_host middleware[4939]: D core::Config::load:274() => ipsec.obj (remote_access->l2tp.conf,ipsec->connections.conf
mdw-debug.log:2011:03:21-05:00:24 asg_host middleware[4939]: D utils::Exec::SystemCall:32() => /var/mdw/scripts/openl2tpd restart
mdw-debug.log:2011:03:21-05:00:24 asg_host middleware[4939]: :: Shutting down L2TP daemon..done
mdw-debug.log:2011:03:21-05:00:24 asg_host middleware[4939]: :: Starting L2TP daemon..done
mdw-debug.log:2011:03:21-05:00:24 asg_host middleware[4939]: D utils::Exec::BuryChildren:107() => CHILD 2 EXIT 3184 /var/mdw/scripts/named reload
mdw-debug.log:2011:03:21-05:00:24 asg_host middleware[4939]: D utils::Exec::ForkingSystem:99() => CHILD 2 FORK 3204 /bin/rm -f /var/sec/chroot-ipsec/etc/radiusclient/radiusclient.conf /var/sec/chroot-ipsec/etc/radiusclient/servers
mdw-debug.log:2011:03:21-05:00:24 asg_host middleware[4939]: D utils::Exec::SystemCall:32() => /usr/bin/find /var/sec/chroot-ipsec/etc/ipsec.d -type f ! -newer /var/sec/chroot-ipsec/etc/ipsec.d/.timestamp -exec /bin/rm -f {} ;
mdw-debug.log:2011:03:21-05:00:25 asg_host middleware[4939]: no dns attribute was found.
mdw-debug.log:2011:03:21-05:00:25 asg_host middleware[4939]: no nbns attribute was found.
mdw-debug.log:2011:03:21-05:00:25 asg_host middleware[4939]: no unity_def_domain attribute (UNITY_DEF_DOMAIN) was found.
mdw-debug.log:2011:03:21-05:00:25 asg_host middleware[4939]: D utils::Exec::SystemCall:32() => /var/mdw/scripts/ipsec-starter restart
mdw-debug.log:2011:03:21-05:00:25 asg_host middleware[4939]: :: Shutting down IPsec subsystem (not running)..done
mdw-debug.log:2011:03:21-05:00:25 asg_host middleware[4939]: :: Starting IPsec subsystem..done


fallback.log:2011:03:21-05:00:24 asg_host [local7:err] startproc:  startproc: cannot open dir: No such file or directory
fallback.log:2011:03:21-05:00:24 asg_host [local7:warning] startproc:  startproc:  exit status of parent of /usr/sbin/openl2tpd: 100

selfmon.log:2011:03:21-05:00:28 asg_host selfmonng[4972]: I check Failed increment l2tpd_running counter 1 - 3
selfmon.log:2011:03:21-05:00:28 asg_host selfmonng[4972]: I check Failed increment dyndns_running counter 1 - 3
selfmon.log:2011:03:21-05:00:33 asg_host selfmonng[4972]: I check Failed increment l2tpd_running counter 2 - 3
selfmon.log:2011:03:21-05:00:38 asg_host selfmonng[4972]: W check Failed increment l2tpd_running counter 3 - 3
selfmon.log:2011:03:21-05:00:38 asg_host selfmonng[4972]: L2TP-over-IPsec daemon not running - restarted
selfmon.log:2011:03:21-05:00:38 asg_host selfmonng[4972]: W NOTIFYEVENT Name=l2tpd_running Level=INFO Id=148 sent
selfmon.log:2011:03:21-05:00:38 asg_host selfmonng[4972]: W triggerAction: 'cmd'
selfmon.log:2011:03:21-05:00:38 asg_host selfmonng[4972]: W actionCmd(+):  '/var/mdw/scripts/openl2tpd restart'
selfmon.log:2011:03:21-05:00:38 asg_host selfmonng[4972]: W child returned status: exit='0' signal='0'



Regards,
Marco
Parents Reply Children
No Data