Thank you Andre for helping out. I figured that the "systemd-console-setup.service" was disabled in the server. I have enable it. However, tomcat still refuses to start. Below is the content of tomcat.service:
[Unit] Description=Apache Tomcat 9 After=syslog.target network.target [Service] User=tomcat Group=tomcat Type=forking Environment=CATALINA_PID=/opt/tomcat/tomcat.pid Environment=CATALINA_HOME=/opt/tomcat Environment=CATALINA_BASE=/opt/tomcat ExecStart=/opt/tomcat/bin/startup.sh ExecStop=/opt/tomcat/bin/shutdown.sh Restart=on-failure [Install] WantedBy=multi-user.target Now it doesn't give any error other than "Unit tomcat.service entered failed state." On Sun, Oct 20, 2019 at 1:04 PM André Warnier (tomcat) <a...@ice-sa.com> wrote: > On 20.10.2019 10:07, Emefile Francis Nwajie wrote: > > Hello All, > > > > Top of the day to you. > > > > I have a VPS with CentOs 7. > > I am trying to start-up Tomcat 9.0.27 using "systemctl start tomcat". > And I > > got the error message - "Cannot add dependency job for unit > > systemd-console-setup.service". > > > > I am wondering if there is something I have to setup in my CentOS 7 VPS > or > > if it is an issue with Apache Tomcat 9. > > > > Searching Google for "Cannot add dependency job for unit > systemd-console-setup.service" > gives plenty of results (including you own message to this list), most of > which seem to > refer to some systemd issue in various Linux distributions. > So, on the face of it, it does not look like a tomcat issue. > Maybe an issue of the particular packaged distribution of tomcat that you > are using with > CentOS 7 ? > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >