[NFDB-users] NFDB at boot time
Fernando Alvarez
fernando.alvarez at deimos-space.com
Mon May 11 11:04:21 EDT 2009
Hi there!
I have had some troubles trying to make NFDB run at startup, and I want
to share the script to make NFDB to run at startup.
if [ -x /usr/local/bin/pg_ctl -a -x /usr/local/bin/postgres ];
then
su _postgresql -c 'cd /usr/local/bin; ./pg_ctl
-D /var/postgresql/data -l /var/postgresql/logfile start'
echo -n ' postgresql'
fi
echo '.'
sleep 15 # wait for postgresql to start
if [ -x /var/www/netflowdashboard/sbin/netflowdb.pl ]; then
echo -n ' netflow
dashboard'; /var/www/netflowdashboard/sbin/netflowdb.pl &
fi
echo '.'
There are some modifications on the postgresql section to allow it to
start On postgresql documentation, the script does not run correctly (I
think the issue is about using su, and the pathname). I know it's a
little dirty way to start postgresql, but I didn't found a better way to
do it.
Hope it helps,
Fernando
More information about the nfdb-users
mailing list