Skip to content
John Paden edited this page Jun 10, 2023 · 12 revisions

This page describes common maintenance tasks.

When the VM is rebooted, you may need to stop and then start the OPS services. You may also need to check the services to make sure they started.


Stop OPS services

Start OPS services

Check OPS services


Stop OPS services:

sudo -i
systemctl stop httpd
systemctl stop tomcat
systemctl stop postgresql-12

Start OPS services:

sudo -i
systemctl start postgresql-12
systemctl start tomcat
systemctl start httpd

Check OPS services

To see which services start on bootup, run chkconfig --list. Usually the services should be on for run levels 2 through 5 and off for run levels 0, 1, and 6.

[root@ops3 ~]# chkconfig --list
httpd          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
postgresql-9.3 	0:off	1:off	2:off	3:off	4:off	5:off	6:off
tomcat6        	0:off	1:off	2:on	3:on	4:on	5:on	6:off

To turn the postgresql service on for example, run chkconfig --level 2345 postgresql-9.3 on.

Tomcat (java)

[root@ops3 ~]# ps -ef | grep tomcat
tomcat   13828     1 13 11:59 ?        00:01:12 /usr/java/jre1.8.0//bin/java -server -Xms2048m -Xmx2048m -XX:+UseParallelGC -XX:+UseParallelOldGC -DGEOSERVER_DATA_DIR=/db/geoserver -classpath :/usr/share/tomcat6/bin/bootstrap.jar:/usr/share/tomcat6/bin/tomcat-juli.jar:/usr/share/java/commons-daemon.jar -Dcatalina.base=/usr/share/tomcat6 -Dcatalina.home=/usr/share/tomcat6 -Djava.endorsed.dirs= -Djava.io.tmpdir=/var/cache/tomcat6/temp -Djava.util.logging.config.file=/usr/share/tomcat6/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager org.apache.catalina.startup.Bootstrap start
root     14242 13426  0 12:08 pts/1    00:00:00 grep tomcat

Apache (httpd)

[root@ops3 ~]# ps -ef | grep httpd
root     13907     1  0 11:59 ?        00:00:00 /usr/sbin/httpd
apache   13909 13907  1 11:59 ?        00:00:09 /usr/sbin/httpd
apache   13910 13907  0 11:59 ?        00:00:00 /usr/sbin/httpd
apache   13911 13907  0 11:59 ?        00:00:00 /usr/sbin/httpd
apache   13912 13907  0 11:59 ?        00:00:00 /usr/sbin/httpd
apache   13913 13907  0 11:59 ?        00:00:00 /usr/sbin/httpd
apache   13914 13907  0 11:59 ?        00:00:00 /usr/sbin/httpd
apache   13915 13907  0 11:59 ?        00:00:00 /usr/sbin/httpd
apache   13916 13907  0 11:59 ?        00:00:00 /usr/sbin/httpd
apache   13917 13907  0 11:59 ?        00:00:00 /usr/sbin/httpd
apache   13953 13907  0 11:59 ?        00:00:00 /usr/sbin/httpd
apache   13977 13907  0 11:59 ?        00:00:00 /usr/sbin/httpd
apache   13978 13907  0 11:59 ?        00:00:00 /usr/sbin/httpd
root     14249 13426  0 12:08 pts/1    00:00:00 grep httpd

Postgresql (postmaster)

[root@ops3 ~]# ps -ef | grep postmaster
postgres 13738     1  0 11:59 ?        00:00:00 /usr/pgsql-9.3/bin/postmaster -p 5432 -D /db/pgsql/9.3/
root     14251 13426  0 12:08 pts/1    00:00:00 grep postmaster