diff options
-rwxr-xr-x | scripts/tomcat-debug.sh | 8 | ||||
-rwxr-xr-x | scripts/tomcat-restart.sh | 4 | ||||
-rwxr-xr-x | scripts/tomcat-start.sh | 5 | ||||
-rwxr-xr-x | scripts/tomcat-stop.sh | 5 |
4 files changed, 22 insertions, 0 deletions
diff --git a/scripts/tomcat-debug.sh b/scripts/tomcat-debug.sh new file mode 100755 index 0000000..187a2c0 --- /dev/null +++ b/scripts/tomcat-debug.sh @@ -0,0 +1,8 @@ +#!/bin/sh -x + +INSTANCE_NAME=pki-tomcat +FILE=/etc/sysconfig/$INSTANCE_NAME + +# semanage port -a -t http_port_t -p tcp 8000 +sed 's/^#\(JAVA_OPTS="-Xdebug.*\)$/\1/' < $FILE > $FILE.tmp +mv $FILE.tmp $FILE diff --git a/scripts/tomcat-restart.sh b/scripts/tomcat-restart.sh new file mode 100755 index 0000000..0b7d4a4 --- /dev/null +++ b/scripts/tomcat-restart.sh @@ -0,0 +1,4 @@ +#!/bin/sh -x + +./tomcat-stop.sh +./tomcat-start.sh diff --git a/scripts/tomcat-start.sh b/scripts/tomcat-start.sh new file mode 100755 index 0000000..33f7a5f --- /dev/null +++ b/scripts/tomcat-start.sh @@ -0,0 +1,5 @@ +#!/bin/sh -x + +INSTANCE_NAME=pki-tomcat + +systemctl start pki-tomcatd@$INSTANCE_NAME.service diff --git a/scripts/tomcat-stop.sh b/scripts/tomcat-stop.sh new file mode 100755 index 0000000..a21c1e6 --- /dev/null +++ b/scripts/tomcat-stop.sh @@ -0,0 +1,5 @@ +#!/bin/sh -x + +INSTANCE_NAME=pki-tomcat + +systemctl stop pki-tomcatd@$INSTANCE_NAME.service |