|
|
@@ -47,7 +47,7 @@ debugProg="SNFDebugServer" |
|
|
|
productionProg="SNFServer" |
|
|
|
|
|
|
|
name="snfserver" |
|
|
|
rcvar=`set_rcvar` |
|
|
|
rcvar=snfserver_enable |
|
|
|
required_dirs=$dir |
|
|
|
required_files="$dir/$productionProg $dir/$clientProg $configFile" |
|
|
|
snfserver_user=snfuser |
|
|
@@ -62,17 +62,11 @@ then |
|
|
|
# Enable core dumps. |
|
|
|
ulimit -c unlimited |
|
|
|
|
|
|
|
# Run debug version. |
|
|
|
command=$dir/$debugProg |
|
|
|
|
|
|
|
# Alternative to run under strace to get system call info. |
|
|
|
#command="/usr/local/bin/strace" |
|
|
|
# Get system call info. |
|
|
|
command="/usr/bin/truss" |
|
|
|
|
|
|
|
# Start with output redirected to a file. |
|
|
|
command_args="$configFile >> $debugOutputFile 2>&1 &" |
|
|
|
|
|
|
|
# Alternative for running under strace. |
|
|
|
#command_args="-r -tt -v $dir/$debugProg $configFile >> $debugOutputFile 2>&1 &" |
|
|
|
command_args="-d $dir/$debugProg $configFile >> $debugOutputFile 2>&1 &" |
|
|
|
|
|
|
|
else |
|
|
|
|