What workaround do you suggest in the meantime ?

I'm currently using a very ugly hack which is an oneshot service that runs "ip tunnel del" right before the PPP service starts (and ignores eventual errors); is there a better way, possibly without touching the actual PPP service file (I'd like the tunnel to be self-contained in its netdev files).

        # /etc/systemd/system/[email protected]
        [Unit]
        Description=PPP link to %I
        After=network.target tunnel-delete.service
        Wants=tunnel-delete.service

        [Service]
        Type=forking
        PIDFile=/run/ppp-%i.pid
        ExecStart=/usr/sbin/pppd call %I linkname %i updetach
        SuccessExitStatus=5
        Restart=on-failure

        [Install]
        WantedBy=multi-user.target

        # /etc/systemd/system/tunnel-delete.service
        [Unit]
        Description=Delete remaining tunnel
        [email protected]

        [Service]
        Type=oneshot
        ExecStartPre=-/bin/ip link set down dev heipv6 # horror starts here
        ExecStart=-/bin/ip tunnel del heipv6 # more nightmares

On 2015-08-21 05:10, Susant Sahani wrote:
yes right now we don't support deletion dynamically. Probably we would
do that in future doing via networkctl.
Susant

_______________________________________________
systemd-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to