From 1aa47310cad868fcb7479d27d86d810b5f9f16a9 Mon Sep 17 00:00:00 2001 From: Maxim Sobolev Date: Tue, 12 Jun 2001 10:20:48 +0000 Subject: 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 --- www/orion/pkg-deinstall | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 www/orion/pkg-deinstall (limited to 'www/orion/pkg-deinstall') diff --git a/www/orion/pkg-deinstall b/www/orion/pkg-deinstall new file mode 100644 index 000000000000..3ebd95313283 --- /dev/null +++ b/www/orion/pkg-deinstall @@ -0,0 +1,8 @@ +#!/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 -- cgit v1.2.3