chiark / gitweb /
init/tripe-init.in, contrib/tripe-upstart.in: Reformat startup rune.
authorMark Wooding <mdw@distorted.org.uk>
Sun, 20 Jul 2014 13:51:15 +0000 (14:51 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 20 Jul 2014 13:57:03 +0000 (14:57 +0100)
  * The old ${var+-O}${var} rune was kind of pointless: rewrite it as
    ${var+-O$var} instead.

  * Remove other pointless braces.

  * Group the addr/port and user/group options together.

contrib/tripe-upstart.in
init/tripe-init.in

index aa6e419..42d15de 100644 (file)
@@ -144,16 +144,15 @@ script
 
        ## Start the server, passing lots of arguments.
        $tripectl -s -p$tripe \
-         -f${logfile-/var/log/tripe.log} \
          -P$pidfile \
-         ${keytag+-S-t}$keytag \
-         ${addr+-S-b}$addr \
-         ${port+-S-p}${port} \
-         ${user+-U}${user} \
-         ${group+-G}${group} \
-         ${trace+-S-T}${trace} \
-         ${tunnel+-S-n}${tunnel} \
-         ${miscopts}
+         -f${logfile-@logfile@} \
+         ${keytag+-S-t$keytag} \
+         ${addr+-S-b$addr} ${port+-S-p$port} \
+         ${user+-U$user} ${group+-G$group} \
+         ${sockmode+-S-m$sockmode} \
+         ${trace+-S-T$trace} \
+         ${tunnel+-S-n$tunnel} \
+         $miscopts
 
 end script
 
index d04f42f..7a21c4a 100755 (executable)
@@ -134,17 +134,15 @@ case "$1" in
 
     ## Start the server, passing lots of arguments.
     $tripectl -D -s -p$tripe \
-      -f${logfile-@logfile@} \
       -P$pidfile \
-      ${keytag+-S-t}$keytag \
-      ${addr+-S-b}$addr \
-      ${port+-S-p}${port} \
-      ${user+-U}${user} \
-      ${group+-G}${group} \
-      ${sockmode+-S-m}${sockmode} \
-      ${trace+-S-T}${trace} \
-      ${tunnel+-S-n}${tunnel} \
-      ${miscopts}
+      -f${logfile-@logfile@} \
+      ${keytag+-S-t$keytag} \
+      ${addr+-S-b$addr} ${port+-S-p$port} \
+      ${user+-U$user} ${group+-G$group} \
+      ${sockmode+-S-m$sockmode} \
+      ${trace+-S-T$trace} \
+      ${tunnel+-S-n$tunnel} \
+      $miscopts
 
     ## Wait for the server to start up.  This doesn't usually take long.
     for i in 1 2 3 4 give-up; do