debian /etc/init.d/scm-server: function restart has unreachable code

Issue #666 resolved
Pavel Zhukov
created an issue

In file /etc/init.d/scm-server variable SECONDS not changed (lines 84..96). And conditional in line 88 never executed. Is it bug?

Comments (5)

  1. Stephan Christann

    Hello Pavel,

    the variable "$SECONDS" is special. It has an automatic increment. Please have a look at: and

    You can test this funcionality on your computer with this little script:

    #!/bin/sh # Demonstration script by Stephan Christann # TRIOLOGY GmbH SECONDS=0
    while true; do echo $SECONDS sleep 1 clear done

    I hope this helps. Please let me know, if there are any further problems.

  2. Log in to comment