diff options
author | Ernst de Haan <znerd@FreeBSD.org> | 2002-03-29 12:54:15 +0000 |
---|---|---|
committer | Ernst de Haan <znerd@FreeBSD.org> | 2002-03-29 12:54:15 +0000 |
commit | 0ff2aadb8a842a6e7b59c1a268e40bdbd18c02ff (patch) | |
tree | 29e65249b06abba5056bfe5352bdf658b5b8940b /www | |
parent | Update to 1.0.15. (diff) |
Improved startup script. It now creates the PID file and fixes
the ownership and permissions before actually calling the
orionctl program.
Bumped PORTREVISION.
Notes
Notes:
svn path=/head/; revision=56866
Diffstat (limited to 'www')
-rw-r--r-- | www/orion-devel/Makefile | 2 | ||||
-rw-r--r-- | www/orion-devel/files/orion.sh | 13 | ||||
-rw-r--r-- | www/orion/Makefile | 2 | ||||
-rw-r--r-- | www/orion/files/orion.sh | 13 |
4 files changed, 28 insertions, 2 deletions
diff --git a/www/orion-devel/Makefile b/www/orion-devel/Makefile index bcfb92e8526d..ba06e3b04b6b 100644 --- a/www/orion-devel/Makefile +++ b/www/orion-devel/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-devel/files/orion.sh b/www/orion-devel/files/orion.sh index 2bff6366dd1a..6627cfbda27f 100644 --- a/www/orion-devel/files/orion.sh +++ b/www/orion-devel/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%%' ;; *) diff --git a/www/orion/Makefile b/www/orion/Makefile index bcfb92e8526d..ba06e3b04b6b 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 2bff6366dd1a..6627cfbda27f 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%%' ;; *) |