...
Code Block |
---|
su - serveradmin |
Modify Tomcat1's /opt/apache/tomcat.1/bin/startup.sh and opt/apache/tomcat.1/bin/shutdown.sh to only allow serveradmin to start and stop Tomcat.
Do this by adding the block of lines marked with # Bonsaiframework as shown below,
Code Block | ||
---|---|---|
| ||
#!/bin/sh # Bonsaiframework - Modification Start # -------------------------------------- if [ "$LOGNAME" != "serveradmin" ]; then echo "This service should only managed with the user serveradm" exit 1 fi # -------------------------------------- # Bonsaiframework - Modification End # Licensed to the Apache Software Foundation (ASF) under one or more |
...