Changeset 27


Ignore:
Timestamp:
08/11/10 13:51:13 (13 years ago)
Author:
merek
Message:
  • Dont use -Xmx512m as default in init scripts, as this couÃld break small installations
  • Add LSB information to ubuntu/debian init scripts
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/cardproxy.sh

    r25 r27  
    11#!/bin/bash
     2
     3## uncomment this for large csp installations
     4#JVM_PRAMS="-Xmx512m -Dsun.net.inetaddr.ttl=0"
     5## otherwise use this
     6JVM_PARAMS="-Dsun.net.inetaddr.ttl=0"
    27
    38case "`uname -s`" in
     
    7277      exit 1
    7378    fi
    74     java -Xmx512m -Dsun.net.inetaddr.ttl=0 -jar lib/cardservproxy.jar > log/cardserv-sysout.log 2>&1 &
     79    java $JVM_PARAMS -jar lib/cardservproxy.jar > log/cardserv-sysout.log 2>&1 &
    7580    echo $! > $PID_FILE
    7681    sleep 3
  • trunk/cardproxy.sh.ubuntu-autostart

    r26 r27  
    1 #!/bin/bash
     1#!/bin/sh
     2# Start/stop the cardproxy.
     3#
     4### BEGIN INIT INFO
     5# Provides:          cardserver
     6# Required-Start:    $remote_fs
     7# Required-Stop:     $remote_fs
     8# Default-Start:     2 3 4 5
     9# Default-Stop:      1
     10### END INIT INFO
     11
    212#################################################################
    313# CSP startup script
     
    1424NAME=Cardservproxy
    1525DESC="Cardservproxy Daemon"
     26
     27## uncomment this for large csp installations
     28#JVM_PRAMS="-Xmx512m -Dsun.net.inetaddr.ttl=0"
     29## otherwise use this
     30JVM_PARAMS="-Dsun.net.inetaddr.ttl=0"
    1631
    1732case "`uname -s`" in
     
    88103      exit 1
    89104    fi
    90     java -Xmx512m -Dsun.net.inetaddr.ttl=0 -jar $DAEMON > log/cardserv-sysout.log 2>&1 &
     105    java $JVM_PARAMS -jar $DAEMON > log/cardserv-sysout.log 2>&1 &
    91106    echo $! > $PID_FILE
    92107    sleep 3
Note: See TracChangeset for help on using the changeset viewer.