~ubuntu-branches/ubuntu/oneiric/openvpn/oneiric

« back to all changes in this revision

Viewing changes to debian/openvpn.init.d

  • Committer: Bazaar Package Importer
  • Author(s): Thierry Carrez
  • Date: 2008-10-07 16:30:44 UTC
  • mfrom: (1.1.11 upstream) (10.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20081007163044-ixx04wg588z1972e
Tags: 2.1~rc11-1ubuntu1
* Merge with Debian (LP: #279655), remaining diffs:
  - debian/openvpn.init.d: Added 'status' action to init script, show
    per-VPN result messages and add "--script-security 2" by default for
    backwards compatibility
  - debian/control: Added lsb-base>=3.2-14 depend to allow status_of_proc()
* Fixes regression when calling commands with arguments (LP: #277447)

Show diffs side-by-side

added added

removed removed

Lines of Context:
62
62
    # Check to see if it's already started...
63
63
    if test -e /var/run/openvpn.$NAME.pid ; then
64
64
      log_failure_msg "Already running (PID file exists)"
65
 
      STATUS=1
 
65
      STATUS=0
66
66
    else
67
67
      $DAEMON $OPTARGS --writepid /var/run/openvpn.$NAME.pid \
68
68
              $DAEMONARG $STATUSARG --cd $CONFIG_DIR \