Hi All, Sorry for the dumb question. I've installed CentOS-7.2, Java-1.8, MySQL 5.7, Tomcat 9.0.0, XWiki 8.4.3. I've built jsvc and have created a startup script, catalina_start. But now I want a stop script, and to integrate with systemctl/systemd on CentOS-7. I see the page at https://www.weblab360.com/User:xltran/App/xWiki/Installation/CentOS_7 which shows the form of the systemd script /etc/systemd/system.xwiki.service: ------------------------------------------------------- [Unit] Description=xWiki Service After=network.target
[Service] Type=simple User=root ExecStart=/bin/bash /usr/local/xwiki/start_xwiki.sh -p 80 ExecStop=/bin/bash /usr/local/xwiki/stop_xwiki.sh -p 80 Restart=on-abort [Install] WantedBy=multi-user.target ----------------------------------------------- But, I have no /usr/local/xwiki and thus no start-xwiki.sh and stop_xwiki.sh. I installed from .war and don't see those scripts in /opt/apache-tomcat-9.0.0.M15/webapps/xwiki/. Okay, well, I have a catalina_start that works, so I can use that. But for the stop? When I say "$CATALINA_HOME/bin/catalina.sh stop" or "$CATALINA_HOME/bin/shutdown.sh", I get the following: [root@pwswiki10 opt]# $CATALINA_HOME/bin/shutdown.sh Using CATALINA_BASE: /opt/apache-tomcat-9.0.0.M15 Using CATALINA_HOME: /opt/apache-tomcat-9.0.0.M15 Using CATALINA_TMPDIR: /opt/apache-tomcat-9.0.0.M15/temp Using JRE_HOME: /usr/java/jdk1.8.0_25 Using CLASSPATH: /opt/apache-tomcat-9.0.0.M15/bin/bootstrap.jar:/opt/apache-tomcat-9.0.0.M15/bin/tomcat-juli.jar Mar 01, 2017 5:12:16 PM org.apache.catalina.startup.Catalina stopServer SEVERE: Could not contact localhost:8005. Tomcat may not be running. Mar 01, 2017 5:12:16 PM org.apache.catalina.startup.Catalina stopServer SEVERE: Catalina.stop: java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:345) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:589) at java.net.Socket.connect(Socket.java:538) at java.net.Socket.<init>(Socket.java:434) at java.net.Socket.<init>(Socket.java:211) at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:476) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:408) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:497) What have I neglected to do? Thanks in advance Doug The information contained in this transmission may contain West Marine proprietary, confidential and/or privileged information. It is intended only for the use of the person(s) named above. If you are not the intended recipient, you are hereby notified that any review, dissemination, distribution or duplication of this communication is strictly prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. To reply to our email administrator directly, please send an email to netad...@westmarine.com.