Roxen.git / server / start

version» Context lines:

Roxen.git/server/start:1:   #!/bin/sh   # - # $Id: start,v 1.245 2012/09/20 11:27:10 grubba Exp $ + # $Id: start,v 1.246 2012/09/21 08:17:54 grubba Exp $      ### If --silent-start is given as the first argument,   ### nothing will be printed to stdout by the script.      if [ "x$1" = "x--silent-start" ] ; then    SILENT_START="y"    shift   fi      check_owner() {
Roxen.git/server/start:798:   # Check whether there's a valid pid lock on pid $1   # of process type $2 for configuration $3.   check_pid_file_lock() {    # Check that there's a lock-file.    #    # Primary check is in /var/run/ which often is restricted to root.    # Secondary check is in /tmp/ to allow for normal users running    # the script unmodified.    if [ -f "/var/run/roxen-$2.$1.pid" -o -f "/tmp/roxen-$2.$1.pid" ]; then    # Check that the pid file belongs to our configuration. -  if [ `cat /var/run/roxen-$2.$1.pid 2>/dev/null || cat /var/run/roxen-$2.$1.pid 2>/dev/null` = "$3" ]; then +  if [ "`cat /var/run/roxen-$2.$1.pid 2>/dev/null || cat /var/run/roxen-$2.$1.pid 2>/dev/null`" = "$3" ]; then    return 0    fi    fi    return 1   }      # Cleanup after the start-script.   cleanup_start_pid_file() {    cleanup_pid_file_lock "$$" "start" "$canonicalconf"    [ -z "$pidfile" ] || rm -f $pidfile