]> git.pld-linux.org Git - packages/autossh.git/commitdiff
- local vars AC-branch auto/ac/autossh-1_4c-1
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 28 May 2012 20:10:46 +0000 (20:10 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    autossh.init -> 1.3

autossh.init

index d6c8c9f3ce53588697b11b90fc9331100e5f3389..a1ba5bc72d232a281590fc7fed8b1648f37df183 100644 (file)
@@ -45,6 +45,7 @@ start() {
 
        # Parse autossh.tab file
        # /^[^#$]/ - removes comments, i.e. lines begining with '#' and empty lines.
+       local I
        for I in $(awk -vFS=';' '/^[^#$]/ {print $1}' /etc/autossh.tab); do
                msg_starting "autossh $I"
                AUTOSSH_PIDFILE=/var/run/autossh/$I.pid $(awk -vFS=';' "-vport=$AUTOSSH_PORT" "/^$I;/ "'{printf("daemon autossh -M%s -fN %s\n", port, $2)}' /etc/autossh.tab)
@@ -76,6 +77,7 @@ reload() {
        fi
 
        msg_reloading autossh
+       local I
        for I in /var/run/autossh/*.pid; do
          killproc --pidfile $I autossh -USR1
        done
This page took 0.083391 seconds and 4 git commands to generate.