Results 1 to 3 of 3

Thread: upstart - how to check is openvpn is connected?

  1. #1
    Join Date
    Mar 2013
    Beans
    4

    upstart - how to check is openvpn is connected?

    Hi,

    I need to run a script after mysql and ovpn has started.
    This could be done very easily with upstart, I do that with this script in /etc/init/

    Code:
    start on (starting openvpn and started mysql)
    
    
      script cd /home/ubuntu/developedGZ/provaMySql/ 
    ./provaMySql 
    end script
    The script succesfully run after mysql but not after openvpn connected.
    How can I do that?

    Thank you
    regards

    Giuseppe

  2. #2
    Join Date
    Mar 2013
    Beans
    4

    Re: upstart - how to check is openvpn is connected?

    I solved this in a very simple manner:
    I changed my start on condition in:

    Code:
    start on (started mysql and net-device-added INTERFACE=tun0)
    and works very well!..for now..

  3. #3
    Join Date
    Jun 2013
    Beans
    1

    Re: upstart - how to check is openvpn is connected?

    Quote Originally Posted by josephonthejob View Post
    I solved this in a very simple manner: I changed my start on condition in:
    Code:
    start on (started mysql and net-device-added INTERFACE=tun0)
    and works very well!..for now..
    Thank you so much, I was trying:
    Code:
    net-device-up IFACE=tun0
    and it was failing, because the device didn't exist when checked.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •