Re: Cannot add dependency job for unit systemd-console-setup.service
Emefile, On 10/20/19 10:00, Zero wrote: On 10/20/19 3:28 PM, Emefile Francis Nwajie wrote: 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." Tomcat logs its state in logfiles located in /var/log or /opt/tomcat/log. Maybe check those loggings to get an idea of why it fails to startup. Also: $ journalctl -u tomcat.service Because why should you be able to read a log file directly when you can run a program to read it for you? -chris - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Cannot add dependency job for unit systemd-console-setup.service
On 10/20/19 3:28 PM, Emefile Francis Nwajie wrote: 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." Tomcat logs its state in logfiles located in /var/log or /opt/tomcat/log. Maybe check those loggings to get an idea of why it fails to startup. ~Harm-Jan - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Cannot add dependency job for unit systemd-console-setup.service
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) 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 > >
Re: Cannot add dependency job for unit systemd-console-setup.service
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
Cannot add dependency job for unit systemd-console-setup.service
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. Thanks for your help.