Restart all services: Difference between revisions

From wiki.comcert.com
Jump to navigation Jump to search
(Created page with " == Introduction == The out-of-the box stop and start scripting is silent and generates no screen output . It is non-system specific i.e. services will fail to stop and/or st...")
 
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 2: Line 2:
== Introduction ==
== Introduction ==


The out-of-the box stop and start scripting is silent and generates no screen output . It is non-system specific i.e. services will fail to stop and/or start and the user cannot  know for sure if that failure to stop/start represents a problem or not.
The out-of-the box stop and start script is silent and generates no screen output . It is non-system specific i.e. services will fail to stop and/or start and the user cannot  know for sure if that behavior is sign of a problem or not.


 
 
Line 8: Line 8:
== Solution ==
== Solution ==


If the system has been installed by COMCERT, we installed a system specific script to restart all services and as such avoid a reboot of the appliance.
=== Running the script ===


Log in with SSH
If the system has been installed by COMCERT, we installed a system specific script to restart all services.


Assume root
In case of an eminent problem, running the restart script may reveal what service failed to start. Mention this service when you contact techsupport.
<pre>$ sudo su -</pre>


Go to the /opt/tv folder
*You don't have to be root to run this script
<pre># cd /opt/tv</pre>
*Log in with SSH
*Change to the /opt/tv folder  
<pre>$ cd /opt/tv</pre>


Run the restart script
*Run the restart script  
<pre># ./tv-restart-services.sh</pre>
<pre>$ ./tv-restart-services.sh</pre>


&nbsp;
=== Sample screen output on TVC ===
<pre>[TVadmin@crt-vir-a-tvc11 ~]$ cd /opt/tv
[TVadmin@crt-vir-a-tvc11 tv]$ ./tv-restart-services.sh
Stopping Portal ...
Stopping User Discovery ...
Stopping ServerHealth ...
Stopping Query Engine ...
Stopping Data engine ...
Stopping Elastic Search ...
Stopping Cassandra ...
Stopping Configure Engine ...
Stopping Manager ...
Stopping Mongo DB ...
Stopping Nginx ...
 
Services have been stopped
 
Now starting services in reverse order
 
Starting Nginx ...
Starting Mongo DB ...
Starting Manager ...
Starting Configure Engine ...
Starting Cassandra ...
Starting Elastic Search ...
Starting Data Engine ...
Starting Query Engine ...
Starting ServerHealth ...
Starting User discovery ...
Starting Portal ...
 
Services have been started
 
[TVadmin@crt-vir-a-tvc11 tv]$ </pre>
 
=== Sample screen output on TVF ===
 
<span style="background-color:#FFFF00;">Notice the error when starting Configure Engine service. This is normal behavior.</span>
<pre>[TVadmin@crt-vir-a-tvf11 ~]$ cd /opt/tv
[TVadmin@crt-vir-a-tvf11 tv]$ ./tv-restart-services.sh
Stopping TruView Flow ...
Stopping Configure Engine ...
Stopping Manager ...
Stopping Mongo DB ...
Stopping Nginx ...
 
Services have been stopped
 
Now starting services in reverse order
 
Starting Nginx ...
Starting Mongo DB ...
Starting Manager ...
Starting Configure Engine ...
Failed to start tv-configengine.service: Unit tv-configengine.service is masked. 
Starting TruView Flow ...
 
Services have been started
 
[TVadmin@crt-vir-a-tvf11 tv]$
</pre>
 
=== Sample screen output on TVP ===
 
<span style="background-color:#FFFF00;">Notice the error when starting Configure Engine service. This is normal behavior.</span>
<pre>[TVadmin@crt-dev-tvc11 ~]$ cd /opt/tv
[TVadmin@crt-dev-tvc11 tv]$ ./tv-restart-services.sh
Stopping TruView Packet ...
Stopping Collector Web ...
Stopping Server Statistics ...
Stopping PostgreSQL ...
Stopping Configure Engine ...
Stopping Manager ...
Stopping Mongo DB ...
Stopping Nginx ...
 
Services have been stopped
 
Now starting services in reverse order
 
Starting Nginx ...
Starting Mongo DB ...
Starting Manager ...
Starting Configure Engine ...
Failed to start tv-configengine.service: Unit tv-configengine.service is masked.
Starting PostgreSQL ...
Starting Server Statistics ...
Starting Collector Web ...
Starting TruView Packet ...
 
Services have been started


&nbsp;
[TVadmin@crt-dev-tvc11 tv]$</pre>

Latest revision as of 16:34, 1 September 2017

Introduction

The out-of-the box stop and start script is silent and generates no screen output . It is non-system specific i.e. services will fail to stop and/or start and the user cannot  know for sure if that behavior is sign of a problem or not.

 

Solution

Running the script

If the system has been installed by COMCERT, we installed a system specific script to restart all services.

In case of an eminent problem, running the restart script may reveal what service failed to start. Mention this service when you contact techsupport.

  • You don't have to be root to run this script
  • Log in with SSH
  • Change to the /opt/tv folder
$ cd /opt/tv
  • Run the restart script
$ ./tv-restart-services.sh

Sample screen output on TVC

[TVadmin@crt-vir-a-tvc11 ~]$ cd /opt/tv
[TVadmin@crt-vir-a-tvc11 tv]$ ./tv-restart-services.sh
Stopping Portal ...
Stopping User Discovery ...
Stopping ServerHealth ...
Stopping Query Engine ...
Stopping Data engine ...
Stopping Elastic Search ...
Stopping Cassandra ...
Stopping Configure Engine ...
Stopping Manager ...
Stopping Mongo DB ...
Stopping Nginx ...

Services have been stopped

Now starting services in reverse order

Starting Nginx ...
Starting Mongo DB ...
Starting Manager ...
Starting Configure Engine ...
Starting Cassandra ...
Starting Elastic Search ...
Starting Data Engine ...
Starting Query Engine ...
Starting ServerHealth ...
Starting User discovery ...
Starting Portal ...

Services have been started

[TVadmin@crt-vir-a-tvc11 tv]$ 

Sample screen output on TVF

Notice the error when starting Configure Engine service. This is normal behavior.

[TVadmin@crt-vir-a-tvf11 ~]$ cd /opt/tv
[TVadmin@crt-vir-a-tvf11 tv]$ ./tv-restart-services.sh
Stopping TruView Flow ...
Stopping Configure Engine ...
Stopping Manager ...
Stopping Mongo DB ...
Stopping Nginx ...

Services have been stopped

Now starting services in reverse order

Starting Nginx ...
Starting Mongo DB ...
Starting Manager ...
Starting Configure Engine ...
Failed to start tv-configengine.service: Unit tv-configengine.service is masked.  
Starting TruView Flow ...

Services have been started

[TVadmin@crt-vir-a-tvf11 tv]$

Sample screen output on TVP

Notice the error when starting Configure Engine service. This is normal behavior.

[TVadmin@crt-dev-tvc11 ~]$ cd /opt/tv
[TVadmin@crt-dev-tvc11 tv]$ ./tv-restart-services.sh
Stopping TruView Packet ...
Stopping Collector Web ...
Stopping Server Statistics ...
Stopping PostgreSQL ...
Stopping Configure Engine ...
Stopping Manager ...
Stopping Mongo DB ...
Stopping Nginx ...

Services have been stopped

Now starting services in reverse order

Starting Nginx ...
Starting Mongo DB ...
Starting Manager ...
Starting Configure Engine ...
Failed to start tv-configengine.service: Unit tv-configengine.service is masked.
Starting PostgreSQL ...
Starting Server Statistics ...
Starting Collector Web ...
Starting TruView Packet ...

Services have been started

[TVadmin@crt-dev-tvc11 tv]$