]> git.pld-linux.org Git - packages/openvpn.git/commitdiff
- somewhy leading space is output with psmisc-22.11-2.i686:
authorElan Ruusamäe <glen@pld-linux.org>
Fri, 18 Jun 2010 07:30:20 +0000 (07:30 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  ps -o pid= -C nm-openvpn-service
  nm_ovpn_pid= 2895

Changed files:
    openvpn.init -> 1.37

openvpn.init

index c9f07a86ed539a2fba86845801a5d08a19f8ab06..24ad81a383ee4469f5e12531ae9c9975bbe81eee 100644 (file)
@@ -131,7 +131,7 @@ status() {
                tunlup $tun && echo -n " $tun($(cat $pidfile))"
        done
        echo ""
-       nm_ovpn_pid=$(ps -o pid= -C nm-openvpn-service)
+       nm_ovpn_pid=$(ps -o pid= -C nm-openvpn-service | xargs)
        if [ "$nm_ovpn_pid" ]; then
                nls "NM ($nm_ovpn_pid) managed OpenVPN sessions"
                ps -o pid,user,command --ppid=$nm_ovpn_pid
This page took 0.120787 seconds and 4 git commands to generate.