From 236c8ea5bf0e0c13d516020f1e5a28a6dd22c6ec Mon Sep 17 00:00:00 2001 From: znerd Date: Fri, 29 Mar 2002 12:54:15 +0000 Subject: Improved startup script. It now creates the PID file and fixes the ownership and permissions before actually calling the orionctl program. Bumped PORTREVISION. --- www/orion/Makefile | 2 +- www/orion/files/orion.sh | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) (limited to 'www/orion') diff --git a/www/orion/Makefile b/www/orion/Makefile index bcfb92e..ba06e3b 100644 --- a/www/orion/Makefile +++ b/www/orion/Makefile @@ -7,7 +7,7 @@ PORTNAME= orion PORTVERSION= 1.5.2 -PORTREVISION= 12 +PORTREVISION= 13 CATEGORIES= www java MASTER_SITES= http://www.orionserver.com/distributions/ \ http://www.atlassian.com/software/orion/downloads/ \ diff --git a/www/orion/files/orion.sh b/www/orion/files/orion.sh index 2bff636..6627cfb 100644 --- a/www/orion/files/orion.sh +++ b/www/orion/files/orion.sh @@ -1,13 +1,26 @@ #!/bin/sh +# -*- mode: Fundamental; tab-width: 4; -*- +# ex:ts=4 +# +# Orion startup script. +# +# $FreeBSD$ +# + # Set some variables MYSELF=`basename $0` case "$1" in start) + truncate -s 0 %%PID_FILE%% + chown %%USER%%:%%GROUP%% %%PID_FILE%% + chmod 600 %%PID_FILE%% su -f -m %%USER%% -c "exec %%CONTROL_SCRIPT%% start > /dev/null" && echo -n ' %%APP_SHORTNAME%%' ;; stop) + chown %%USER%%:%%GROUP%% %%PID_FILE%% + chmod 600 %%PID_FILE%% su -f -m %%USER%% -c "exec %%CONTROL_SCRIPT%% stop > /dev/null" && echo -n ' %%APP_SHORTNAME%%' ;; *) -- cgit v1.1