b1fca01996-11-12Per Hedbor #!/bin/sh
fd12951997-09-07Henrik Grubbström (Grubba) #
05783b1999-09-11Martin Stjernholm # $Id: start,v 1.78 1999/09/10 22:08:15 mast Exp $
67549e1999-09-05Per Hedbor 
05783b1999-09-11Martin Stjernholm pre="`echo \" $$ \" | sed -e 's/\(.........\)\(.*\)/\1/g'` :"
b796b51998-11-18Per Hedbor  cd `dirname $0`
0a4af81998-11-28Per Hedbor 
b1fca01996-11-12Per Hedbor # Can be set with '--config-dir=DIR' DIR=../configurations/ LOGDIR=../logs/ FILES="default"
3e7d3b1998-03-20Per Hedbor program=base_server/roxenloader.pike
7c6da61998-11-01Henrik Grubbström (Grubba) extra_args=""
b1fca01996-11-12Per Hedbor 
14fd211998-11-28Henrik Grubbström (Grubba) # Default verbosity level. verbose=1
48eeb61999-08-06Peter Bortas # Do not default to using a relative path. roxendir="`pwd`"
1f66ab1998-11-22Henrik Grubbström (Grubba) 
bb7e151999-07-21Marcus Comstedt # Set up environment if test -f etc/environment; then . etc/environment fi # Make sure $CLASSPATH contains the servlet stuff CLASSPATH=etc/classes:etc/classes/roxen_servlet.jar:etc/classes/jsdk.jar${CLASSPATH:+:}$CLASSPATH export CLASSPATH
c90cc91999-04-22Per Hedbor pike=pike if [ -x bin/pike ] ; then pike=$roxendir/bin/pike; fi if [ -x bin/roxen ] ; then pike=$roxendir/bin/roxen; fi if [ "x$PIKE" = "x" ]; then :; else if [ -x "$PIKE" ]; then pike="$PIKE"; fi fi
b1e9fe1998-11-28Henrik Grubbström (Grubba) ####### BEGIN ARGUMENT PARSING
b1fca01996-11-12Per Hedbor 
2b19eb1999-08-20Per Hedbor  DEFINES="$DEFINES -DKEEP_ALIVE"
c90cc91999-04-22Per Hedbor # Enable threads (if available) on Solaris. # Most other OS's have thread bugs that cause them or Roxen to crash. if uname | grep 'SunOS' >/dev/null 2>&1; then if uname -r | grep '5\.[5-9]' >/dev/null 2>&1; then if [ $verbose -gt 0 ] ; then
67549e1999-09-05Per Hedbor  echo "$pre Solaris 2.5 or later detected. Enabling threads (if available)."
c90cc91999-04-22Per Hedbor  fi
39217e1999-09-02Per Hedbor  DEFINES="$DEFINES -DENABLE_THREADS -DTHREADS"
c90cc91999-04-22Per Hedbor  if $pike --version 2>&1|head -1|grep 0.5 ; then if [ $verbose -gt 0 ] ; then
67549e1999-09-05Per Hedbor  echo "$pre Pike 0.5 detected. Exiting." exit 1
c90cc91999-04-22Per Hedbor  fi DEFINES="`echo $DEFINES | sed -e 's/-DENABLE_THREADS//'`" fi fi fi
43583b1999-05-25Henrik Grubbström (Grubba) gdb=no
c90cc91999-04-22Per Hedbor 
08cf191999-09-06Per Hedbor remove_old_dot_o_files () { echo "$pre Removing old .o files ($1)"
05783b1999-09-11Martin Stjernholm  > "$roxendir/.remove_dumped_mark"
08cf191999-09-06Per Hedbor  find . -name '*.o' | xargs rm -f }
b1fca01996-11-12Per Hedbor ## Parse all arguments.
82f5191997-03-02Per Hedbor ## GNU-style, long options only, except for -D, simply passed on. parse_args() { while [ ! c"$1" = "c" ] ; do
b1fca01996-11-12Per Hedbor  case $1 in
4019f81997-03-01Per Hedbor  -D*) DEFINES="$DEFINES $1" ;;
08cf191999-09-06Per Hedbor  -l*) DEFINES="$DEFINES $1" ;;
82f5191997-03-02Per Hedbor # Used by the 'install' script
a413051998-08-10Per Hedbor  --truss) pike="truss $pike" ;;
df56361999-08-30Per Hedbor  --truss-c) pike="truss -c $pike" ;;
b1fca01996-11-12Per Hedbor  --log-dir=*) LOGDIR=`echo $1 | sed -e 's/--log-dir=//'` ;; --config-dir=*) DIR=`echo $1 | sed -e 's/--config-dir=//'`
6a85661997-04-10Henrik Grubbström (Grubba)  FILES=`echo $1 | sed -e's/--config-dir=//' -e's/\.//g' -e's./..g' -e 's.-..g'`
b1fca01996-11-12Per Hedbor  ;;
7c6da61998-11-01Henrik Grubbström (Grubba)  --pid-file=*) extra_args="$extra_args $1" ;;
8a788c1998-07-22David Hedbor  '--debug'|'--with-debug'|'--enable-debug')
59f64b1997-01-27Per Hedbor  debug=1 ;;
8edfa31998-08-20Per Hedbor  '--without-debug') debug=-1 ;;
8a788c1998-07-22David Hedbor  '--fd-debug'|'--with-fd-debug'|'--enable-fd-debug')
cc4fdd1998-03-26Per Hedbor  DEFINES="-DFD_DEBUG $DEFINES" ;;
67549e1999-09-05Per Hedbor  '--dump-debug'|'--with-dump-debug'|'--enable-dump-debug') DEFINES="-DDUMP_DEBUG $DEFINES" ;;
8a788c1998-07-22David Hedbor  '--threads'|'--with-threads'|'--enable-threads')
3c31841998-03-01Per Hedbor  DEFINES="-DENABLE_THREADS $DEFINES" ;;
8a788c1998-07-22David Hedbor  '--no-threads'|'--without-threads'|'--disable-threads')
3c31841998-03-01Per Hedbor  DEFINES="`echo $DEFINES | sed -e 's/-DENABLE_THREADS//'`" ;;
2b19eb1999-08-20Per Hedbor  '--no-keep-alive'|'--without-keep-alive'|'--disable-keep-alive') DEFINES="`echo $DEFINES | sed -e 's/-DKEEP_ALIVE//'`" ;;
8edfa31998-08-20Per Hedbor  '--with-profile'|'--profile')
3c31841998-03-01Per Hedbor  DEFINES="-DPROFILE $DEFINES" ;;
8edfa31998-08-20Per Hedbor  '--with-file-profile'|'--file-profile') DEFINES="-DPROFILE -DFILE_PROFILE $DEFINES" ;;
8a788c1998-07-22David Hedbor  '--keep-alive'|'--with-keep-alive'|'--enable-keep-alive')
3c31841998-03-01Per Hedbor  DEFINES="-DKEEP_ALIVE $DEFINES" ;;
14fd211998-11-28Henrik Grubbström (Grubba)  '--quiet'|'-q') verbose=0 ;; '--verbose'|'-v') verbose=2 debug=1 ;;
2213981999-09-05Per Hedbor  '--remove-dumped') remove_old_dot_o_files "user request" ;;
a8135b1996-11-12Per Hedbor  '--once') once=1 ;;
cbced91998-11-06Marcus Comstedt # Misspelling --once might give undesirable results, so let's accept # some "creative" spellings... :-) '--onve'|'--onec'|'--onev') once=1 ;;
c6420b1998-06-02Henrik Grubbström (Grubba)  '--gdb') gdb=gdb once=1 ;;
3e7d3b1998-03-20Per Hedbor  '--program') program="$2"
0a4af81998-11-28Per Hedbor  once=1
3e7d3b1998-03-20Per Hedbor  shift ;;
b796b51998-11-18Per Hedbor  '--cd') cd_to="$2"
b1e9fe1998-11-28Henrik Grubbström (Grubba)  # Use the absolute path... roxendir="`pwd`"
0a4af81998-11-28Per Hedbor  once=1
b796b51998-11-18Per Hedbor  shift ;;
61c0ca1998-11-28Henrik Grubbström (Grubba)  -D*|-d*|-s*|-M*|-I*|-P*|-t*) # Argument passed along to Pike. DEFINES="$DEFINES $1" ;;
b1fca01996-11-12Per Hedbor  '--version')
6a57751999-08-06Henrik Grubbström (Grubba)  if [ -f base_server/roxen.pike ]; then VERSION="`sed <base_server/roxen.pike -e'/__roxen_version__/s/[^0-9]*\([0-9][0-9]*\.[0-9][0-9]*\)[^0-9]*/\1/p' -ed | head -1`" BUILD="`sed <base_server/roxen.pike -e'/__roxen_build__/s/[^0-9]*\([0-9][0-9]*\)[^0-9]*/\1/p' -ed | head -1`" echo "Roxen Challenger $VERSION.$BUILD" exit 0 else echo 'base_server/roxen.pike not found!' exit 1 fi
b1fca01996-11-12Per Hedbor  ;; '--help'|'-?')
ac54c71999-09-10Martin Stjernholm  sed -e "s/\\.B/`tput 'bold' 2>/dev/null`/g" -e "s/B\\./`tput 'sgr0' 2>/dev/null`/g" << EOF
8edfa31998-08-20Per Hedbor .BThis command will start the Roxen serverB.. The environment variable .BROXEN_ARGSB. can be used to specify
82f5191997-03-02Per Hedbor the default arguments.
8edfa31998-08-20Per Hedbor  .BArguments:B.
c083c21998-09-19Henrik Grubbström (Grubba)  .B--versionB.: Output version information.
8edfa31998-08-20Per Hedbor 
aa5b941998-11-28Henrik Grubbström (Grubba)  .B--help -?B.: This information.
2213981999-09-05Per Hedbor  .B--remove-dumpedB.: Remove all dumped code, thus forcing a recompile.
aa5b941998-11-28Henrik Grubbström (Grubba)  .B--verbose -vB.: Enable more verbose messages. .B--quiet -qB.: Disable most of the messages.
8edfa31998-08-20Per Hedbor 
c083c21998-09-19Henrik Grubbström (Grubba)  .B--log-dir=DIRB.: Set the log directory. Defaults to .B../logsB..
8edfa31998-08-20Per Hedbor 
aa5b941998-11-28Henrik Grubbström (Grubba)  .B--config-dir=DIRB.: Use an alternate configuration directory.
c083c21998-09-19Henrik Grubbström (Grubba)  Defaults to .B../configurationB..
8edfa31998-08-20Per Hedbor 
c083c21998-09-19Henrik Grubbström (Grubba)  .B--with-threadsB.: If threads are available, use them.
8edfa31998-08-20Per Hedbor 
c083c21998-09-19Henrik Grubbström (Grubba)  .B--without-threadsB.: Even if threads are enabled by default, disable them.
8edfa31998-08-20Per Hedbor 
c083c21998-09-19Henrik Grubbström (Grubba)  .B--with-profileB.: Store runtime profiling information on a directory basis. This information is not saved on permanent storage, it is only available until the next server restart This will enable a new 'action' in the configuration interface
8edfa31998-08-20Per Hedbor 
c083c21998-09-19Henrik Grubbström (Grubba)  .B--with-file-profileB.: Like .B--with-profileB., but save information for each and every file.
8edfa31998-08-20Per Hedbor 
c083c21998-09-19Henrik Grubbström (Grubba)  .B--with-keep-aliveB.: Enable keep alive in the HTTP
2b19eb1999-08-20Per Hedbor  protocol module. This is the default. Some clients might have problems with keep-alive. .B--without-keep-aliveB.: Disable keep alive in the HTTP protocol module. Some clients might have problems with keep-alive.
8edfa31998-08-20Per Hedbor 
c083c21998-09-19Henrik Grubbström (Grubba)  .B--onceB.: Run the server only once, in the foreground. This is very useful when debugging.
8edfa31998-08-20Per Hedbor 
c083c21998-09-19Henrik Grubbström (Grubba)  .B--gdbB.: Run the server in gdb. Implies .B--onceB..
8edfa31998-08-20Per Hedbor 
c083c21998-09-19Henrik Grubbström (Grubba)  .B--programB.: Start a different program with the roxen
61c0ca1998-11-28Henrik Grubbström (Grubba)  Pike. As an example,
c083c21998-09-19Henrik Grubbström (Grubba)  .B./start --program bin/install.pikeB. will start the installation program normally started with .B./installB.
8edfa31998-08-20Per Hedbor 
c083c21998-09-19Henrik Grubbström (Grubba)  .B--with-debugB.: Enable debug
8edfa31998-08-20Per Hedbor 
c083c21998-09-19Henrik Grubbström (Grubba)  .B--without-debugB.: Disable all debug
8edfa31998-08-20Per Hedbor 
c083c21998-09-19Henrik Grubbström (Grubba)  .B--with-fd-debugB.: Enable FD debug.
8edfa31998-08-20Per Hedbor 
67549e1999-09-05Per Hedbor  .B--with-dump-debugB.: Enable dump debug.
c083c21998-09-19Henrik Grubbström (Grubba)  .B--trussB.: (Solaris only). Run the server under truss, shows .BallB. system calls. This is extremely noisy, and is not intented for anything but debug.
8edfa31998-08-20Per Hedbor 
67549e1999-09-05Per Hedbor  .B--truss-cB.: (Solaris only). Run the server under truss -c, shows times for all system calls on exit. This is not intented for anything but debug. Slows the server down.
c083c21998-09-19Henrik Grubbström (Grubba)  .B--pid-file=<file>B.: Store the roxen and startscript pids in this file. Defaults to .B/tmp/roxen_$UIDB.
8edfa31998-08-20Per Hedbor  .BArguments passed to pike:B.
c083c21998-09-19Henrik Grubbström (Grubba)  .B-DDEFINEB.: Define the symbol .BDEFINEB..
8edfa31998-08-20Per Hedbor 
61c0ca1998-11-28Henrik Grubbström (Grubba)  .B-d<level>B.: Set the runtime Pike debug to level. This only works if Pike is compiled
c083c21998-09-19Henrik Grubbström (Grubba)  with debug.
8edfa31998-08-20Per Hedbor 
c083c21998-09-19Henrik Grubbström (Grubba)  .B-s<size>B.: Set the stack size.
8edfa31998-08-20Per Hedbor 
61c0ca1998-11-28Henrik Grubbström (Grubba)  .B-M<path>B.: Add the path to the Pike module path. .B-I<path>B.: Add the path to the Pike include path.
8edfa31998-08-20Per Hedbor 
61c0ca1998-11-28Henrik Grubbström (Grubba)  .B-P<path>B.: Add the path to the Pike program path.
8edfa31998-08-20Per Hedbor 
c083c21998-09-19Henrik Grubbström (Grubba)  .B-dtB.: Turn of tail recursion optimization.
adae241998-09-18Per Hedbor 
61c0ca1998-11-28Henrik Grubbström (Grubba)  .B-tB.: Turn on Pike level tracing.
8edfa31998-08-20Per Hedbor 
61c0ca1998-11-28Henrik Grubbström (Grubba)  .B-t<level>B.: Turn on more Pike tracing. This only works if Pike is compiled with debug.
8edfa31998-08-20Per Hedbor  .BEnvironment variables:B.
7de5181998-11-22Per Hedbor  .BLANGB.: Used to determine the default locale in the configuration interface and logs.
c083c21998-09-19Henrik Grubbström (Grubba)  .BROXEN_CONFIGDIRB.: Same as .B--config-dir=... B. .BROXEN_PID_FILEB.: Same as .B--pid-file=... B. .BROXEN_LANGB.: The default language for all language
7de5181998-11-22Per Hedbor  related tags. Defaults to 'en' for english.
8edfa31998-08-20Per Hedbor 
82f5191997-03-02Per Hedbor EOF tput 'rmso' 2>/dev/null
b1fca01996-11-12Per Hedbor  exit 0 ;; *) pass="$pass $1"
5e87b41997-04-09Henrik Grubbström (Grubba)  ;;
b1fca01996-11-12Per Hedbor  esac shift
82f5191997-03-02Per Hedbor  done } parse_args $@
b1fca01996-11-12Per Hedbor 
82f5191997-03-02Per Hedbor if [ ! "X$ROXEN_ARGS" = "X" ]; then
14fd211998-11-28Henrik Grubbström (Grubba)  if [ $verbose -gt 0 ]; then
67549e1999-09-05Per Hedbor  echo "$pre Using $ROXEN_ARGS from ROXEN_ARGS."
14fd211998-11-28Henrik Grubbström (Grubba)  else :; fi
82f5191997-03-02Per Hedbor  parse_args $ROXEN_ARGS fi
d1ff621997-07-24Marcus Comstedt if [ ! "X$pass" = "X" ] ; then set -- $pass ;fi
b1fca01996-11-12Per Hedbor 
b1e9fe1998-11-28Henrik Grubbström (Grubba) ####### END ARGUMENT PARSING ####### BEGIN PIKE OPTIONS # Roxen will create files as the initial user, # which it expects to be able to read as the run-time user. umask 022
2587671999-04-24Martin Stjernholm if [ "x$PIKE_NO_DEFAULT_PATHS" = "x" ]; then # Pike default Master-program if [ "x$PIKE_MASTER" = "x" ]; then if [ -d share/pike ]; then # This is used with localinstall DEFINES="$DEFINES -I$roxendir/share/pike/include" PIKE_MODULE_PATH="$PIKE_MODULE_PATH:$roxendir/share/pike/modules" fi if [ -f lib/master.pike ]; then DEFINES="$DEFINES -m$roxendir/lib/master.pike -I$roxendir/lib/include" PIKE_MODULE_PATH="$PIKE_MODULE_PATH:$roxendir/lib/modules:$roxendir/share/modules" elif [ -f lib/pike/master.pike ]; then DEFINES="$DEFINES -m$roxendir/lib/pike/master.pike -I$roxendir/lib/pike/include" PIKE_MODULE_PATH="$PIKE_MODULE_PATH:$roxendir/lib/pike/modules:$roxendir/share/pike/modules" fi export PIKE_MODULE_PATH else # This is useful when using several different Pikes. # Specify include and module paths with # PIKE_INCLUDE_PATH and PIKE_MODULE_PATH # they are handled automatically by the master, # so no need to do it here. DEFINES="$DEFINES -m$PIKE_MASTER"
b1e9fe1998-11-28Henrik Grubbström (Grubba)  fi fi # Extra module-path if [ -d etc/modules ]; then DEFINES="$DEFINES -M$roxendir/etc/modules" fi # Extra include-path if [ -d etc/include ]; then DEFINES="$DEFINES -I$roxendir/etc/include" fi # Extra include-path (2) if [ -d base_server ]; then DEFINES="$DEFINES -I$roxendir/base_server" fi # Extra program-path DEFINES="$DEFINES -P`pwd`" # Support for adding local pike-modules if [ -d ../local/etc/. ]; then # Extra module-path if [ -d ../local/etc/modules/. ]; then DEFINES="$DEFINES -M$roxendir/../local/etc/modules" fi # Extra include-path if [ -d ../local/etc/include ]; then DEFINES="$DEFINES -I$roxendir/../local/etc/include" fi # Extra program-path DEFINES="$DEFINES -P$roxendir/../local/etc" fi # Extra kludge for HPUX # HPUX doesn't like group 60001(nobody) if uname | grep 'HP-UX' >/dev/null 2>&1; then
14fd211998-11-28Henrik Grubbström (Grubba)  if [ $verbose -gt 0 ]; then
67549e1999-09-05Per Hedbor  echo "$pre WARNING: Applying kludge for HPUX. (see base_server/privs.pike)"
14fd211998-11-28Henrik Grubbström (Grubba)  else :; fi
b1e9fe1998-11-28Henrik Grubbström (Grubba)  DEFINES="$DEFINES -DHPUX_KLUDGE" fi ####### END PIKE OPTIONS
38e43b1998-09-12Henrik Grubbström (Grubba)  # # Some useful functions # rotate () { b=5; for a in 4 3 2 1 ; do mv -f $1.$a $1.$b 2> /dev/null; b=$a; done } start_roxen() {
7435a41998-11-28Henrik Grubbström (Grubba)  if [ "x$DIR" != "x../configurations/" ] ; then
2213981999-09-05Per Hedbor  args="$DEFINES $program --config-dir=$DIR $pass"
b796b51998-11-18Per Hedbor  else
2213981999-09-05Per Hedbor  args="$DEFINES $program $pass"
b796b51998-11-18Per Hedbor  fi if [ x$cd_to != x ] ; then cd $cd_to fi
38e43b1998-09-12Henrik Grubbström (Grubba)  if [ "x$gdb" = "xno" ]; then
14fd211998-11-28Henrik Grubbström (Grubba)  if [ $verbose -gt 0 ]; then
05783b1999-09-11Martin Stjernholm  echo "$pre" "Executing $pike $args $@"|sed -e "s!`pwd`!.!g"
14fd211998-11-28Henrik Grubbström (Grubba)  else :; fi
38e43b1998-09-12Henrik Grubbström (Grubba)  $pike $args $@ else
05783b1999-09-11Martin Stjernholm  echo "$pre" Executing gdb $pike $args $@
38e43b1998-09-12Henrik Grubbström (Grubba)  echo >.gdbinit handle SIGPIPE nostop noprint pass echo >>.gdbinit handle SIGUSR1 nostop noprint pass echo >>.gdbinit handle SIGUSR2 nostop noprint pass echo >>.gdbinit run $args $@ gdb $pike rm .gdbinit fi } # # Now do the stuff #
8edfa31998-08-20Per Hedbor 
26cc261999-05-25Martin Stjernholm if [ -z "$debug" ] ; then DEBUG="-DMODULE_DEBUG"; else DEBUG="-DDEBUG -DMODULE_DEBUG" fi if [ "x$debug" = "x-1" ] ; then DEBUG=""; else :; fi
2213981999-09-05Per Hedbor DEFINES="$DEBUG $DEFINES" PIKEVERSION=`$pike --version 2>&1` if [ "`cat .old_roxen_defines 2>/dev/null`" != "$PIKEVERSION $DEFINES" ] ; then remove_old_dot_o_files "DEFINES changed" fi echo "$PIKEVERSION $DEFINES" > .old_roxen_defines
a8135b1996-11-12Per Hedbor if [ -z "$once" ] ; then
14fd211998-11-28Henrik Grubbström (Grubba)  if [ $verbose -gt 0 ]; then
05783b1999-09-11Martin Stjernholm  echo "$pre" Starting the Roxen Challenger World Wide Web server.
14fd211998-11-28Henrik Grubbström (Grubba)  else :; fi ./mkdir -p $LOGDIR/debug/
0a4af81998-11-28Per Hedbor 
14fd211998-11-28Henrik Grubbström (Grubba)  if [ $verbose -gt 0 ]; then cat << oo
13c5481998-07-02Henrik Grubbström (Grubba) Using configuration from $DIR, storing the debug log in $LOGDIR/debug/$FILES.1 You can use the configuration interface in the server to get debug info. oo
14fd211998-11-28Henrik Grubbström (Grubba)  else :; fi
13c5481998-07-02Henrik Grubbström (Grubba)  # Try to get rid of some fd's. # Some /bin/sh's have problems detaching otherwise. exec >/dev/null exec 2>/dev/null exec </dev/null
9c353a1997-08-23Henrik Grubbström (Grubba)  (while : ; do
05783b1999-09-11Martin Stjernholm  echo "$pre" "Server restart at `date`" echo "$pre" "Debug log in $LOGDIR/debug/$FILES.1"
9c353a1997-08-23Henrik Grubbström (Grubba)  rotate $LOGDIR/debug/$FILES
82f5191997-03-02Per Hedbor 
7c6da61998-11-01Henrik Grubbström (Grubba)  start_roxen $extra_args 2>>$LOGDIR/debug/$FILES.1 1>&2
82f5191997-03-02Per Hedbor 
7cb64f1998-01-17Henrik Grubbström (Grubba)  exitcode="$?"
b1fca01996-11-12Per Hedbor 
7cb64f1998-01-17Henrik Grubbström (Grubba)  if [ "$exitcode" -eq "0" ] ; then # Clean shutdown.
05783b1999-09-11Martin Stjernholm  echo "$pre" "Roxen shutdown."
7cb64f1998-01-17Henrik Grubbström (Grubba)  exit 0 fi if [ "$exitcode" -lt "0" ] ; then # Signal death.
05783b1999-09-11Martin Stjernholm  echo "$pre" "Roxen died of signal $exitcode. Restarting..."
7cb64f1998-01-17Henrik Grubbström (Grubba)  else
05783b1999-09-11Martin Stjernholm  echo "$pre" Roxen down. Restarting.
b1fca01996-11-12Per Hedbor  fi
7de5181998-11-22Per Hedbor  done) < /dev/null > $LOGDIR/debug/start_$FILES.output 2>&1 &
a8135b1996-11-12Per Hedbor else
14fd211998-11-28Henrik Grubbström (Grubba)  if [ $verbose -gt 0 ]; then
67549e1999-09-05Per Hedbor  echo "$pre Start at `date`"
14fd211998-11-28Henrik Grubbström (Grubba)  else :; fi
7c6da61998-11-01Henrik Grubbström (Grubba)  start_roxen $extra_args
a8135b1996-11-12Per Hedbor fi