freebsd-ports/www/orion-devel/pkg-deinstall
Maxim Sobolev 1aa47310ca Several fixes and improvements:
- Now installing a man page for 'orionctl'.
- Correctly stopping Orion and removing the PID file on deinstall.
- Verbose install (removed the @-signs).
- Changes the exit codes in the script (and documented them in the man page)
- Extended the documentation in pkg-descr.

PR:		27748
Submitted by:	maintainer
2001-06-12 10:20:48 +00:00

9 lines
170 B
Bash

#!/bin/sh
PID_FILE=/var/run/orion.pid
if [ -e ${PID_FILE} ]; then
echo -n "Orion is still running."
/bin/kill `cat ${PID_FILE}`
rm -f ${PID_FILE}
echo " Stopped."
fi