summaryrefslogtreecommitdiff
path: root/www/tomcat41/files/startup.sh
diff options
context:
space:
mode:
authorErnst de Haan <znerd@FreeBSD.org>2002-05-08 21:54:06 +0000
committerErnst de Haan <znerd@FreeBSD.org>2002-05-08 21:54:06 +0000
commit15db7d6349aeb97a013636e056167aeb308f161b (patch)
tree1461d9b3df337b4496ebfda8c04158122f2aba26 /www/tomcat41/files/startup.sh
parentThis really shouldn't work (diff)
Improved the startup script. Always displaying a space first
before the name of the application being started/stopped. The advantage is that if there is an error, then the message will have a space prepended instead of being appended to the previous application name. When the application is 'stop'ped, the error messages, if any, are now hidden. Instead the name of the application is just shown. Bumped PORTREVISION.
Diffstat (limited to '')
-rw-r--r--www/tomcat41/files/startup.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/www/tomcat41/files/startup.sh b/www/tomcat41/files/startup.sh
index b27dea9f7de5..edd373ee1478 100644
--- a/www/tomcat41/files/startup.sh
+++ b/www/tomcat41/files/startup.sh
@@ -13,15 +13,17 @@ MYSELF=`basename $0`
case "$1" in
start)
+ echo -n ' '
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%%'
+ su -f -m %%USER%% -c "exec %%CONTROL_SCRIPT%% start" >/dev/null && echo -n '%%APP_SHORTNAME%%'
;;
stop)
+ echo -n ' '
chown %%USER%%:%%GROUP%% %%PID_FILE%%
chmod 600 %%PID_FILE%%
- su -f -m %%USER%% -c "exec %%CONTROL_SCRIPT%% stop > /dev/null" && echo -n ' %%APP_SHORTNAME%%'
+ su -f -m %%USER%% -c "exec %%CONTROL_SCRIPT%% stop" >/dev/null 2>&1 ; echo -n '%%APP_SHORTNAME%%'
;;
*)
echo ""