0

I used below command in jenkins, After execute this command, It shows that tomcat is started but tomcat is not started

#!/bin/bash

TOMCAT_HOME=/home/apache-tomcat

nohup $TOMCAT_HOME/bin/startup.sh &

I need run tomcat in nohup mode on linux machine with Jenkins

2 Answers2

0

I don't know what you mean by "nohup mode". Starting a service directly from the shell like this is always a bad idea. Use a systemd unit file or Sysv Init script.

symcbean
  • 21,009
  • 1
  • 31
  • 52