Skip to content

Instantly share code, notes, and snippets.

@vguerra
Created August 27, 2012 09:22
Show Gist options
  • Save vguerra/3486875 to your computer and use it in GitHub Desktop.
Save vguerra/3486875 to your computer and use it in GitHub Desktop.
Starting NaviServer on watchdog mode
#!/bin/sh
/bin/sleep 1
export LANG=en_US.UTF8
umask 002
# NaviServer
#export LD_LIBRARY_PATH=/usr/local/ssl/lib64
#export PATH=$PATH:/usr/local/pg/bin
CONFIG_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )"/../etc/ && pwd )"
NS_DIR=/usr/local/ns
cd $NS_DIR
ulimit -c unlimited
exec ionice -c1 "$NS_DIR/bin/nsd" -w -u nsadmin -g nsadmin -t "$CONFIG_DIR/config-ns.tcl"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment