#!/bin/sh echo "Shutting down aolserver" /etc/init.d/dotlrn stop # make sure nsd is really gone pkill nsd echo "Removing the dotlrn user in the operating system, in Postgres and the dotlrn database." su - postgres "dropuser dotlrn" su - postgres "dropdb dotlrn" deluser dotlrn echo "Removing the dotlrn crontab jobs from postgres' crontab" su - postgres "crontab -l |grep -v dotlrn> /tmp/pgcrontab.$$; \ crontab /tmp/pgcrontab.$$; \ rm /tmp/pgcrontab.$$;" echo "Restarting aolserver" /etc/init.d/aolserver4 start