#!/bin/bash
#
# Startup CLX
#
# Last change by DL6RAI: Sat Dec  4 11:00:58 GMT 1999

# Do a clean shutdown first
~clx_us/bin/clx -x

# Remove any stale lock files
#/bin/rm -f /tmp/.s.PGSQL.5432 \
#	~postgres/data/base/clx_db/temp_* \
#	~postgres/data/base/clx_db/*tmp* \
#	~postgres/data/base/clx_db/pg_vlock \
#	~clx_us/log/clx_stat
/bin/rm -f ~clx_us/log/clx_stat

# Modify some kernel parameters
#echo 4096 > /proc/sys/kernel/file-max
#echo 12288 > /proc/sys/kernel/inode-max

# And now start up
#/bin/su - postgres -c "postmaster -iS"
/bin/su - clx_us -c "clx -u"
