Gracefull shutdown/restart nGeniusPULSE: Difference between revisions

From wiki.comcert.com
Jump to navigation Jump to search
No edit summary
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 2: Line 2:
== Introduction ==
== Introduction ==


To minimize the risk of data loss, it is recommended that all services are stopped before restarting or shutting down the machine.
 
 
{{#invoke:Message box|ambox |type=content|text=If nGeniusPULSE is not working as expected, [[Creating_logs_for_TAC|create a set of log files]] BEFORE stopping the services. Valuable information for troubleshooting may be lost after restart/reboot.}}
 
 
 
To minimize the chances of data corruption and consequently loss of data, it is required to use the scripts provided for restarting, rebooting or shutting down the virtual of physical appliance.


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


=== nGeniusPULSE (version 2.5 and above) ===
=== Script location ===


*Connect to the host using an SSH client of your choice  
You don't have to be root to run these scripts.
*Login as nGPadmin (for default credentials read [[Default_credentials|default credentials]])
 
*Change to the folder /opt/ipm/appliance/  
*Using the SSH client of your choice, login as nGPadmin  
<pre># cd /opt/ngp/appliance/
*Change to /opt/ngp/appliancetv
</pre>
<pre>$ cd /opt/ngp/appliance</pre>
 
&nbsp;
 
=== Running the script ===
 
==== To restart all services without rebooting the appliance ====
<pre>$ ./ngp-stop-services.sh
 
...followed by...
 
$ ./ngp-start-services.sh</pre>
 
==== To reboot the appliance ====
<pre>$ ./ngp-stop-services.sh


==== To restart all relevant services without restarting the applicance ====
...wait until all services have been stopped...


*24 services need to be stopped and started in the reverse order
$ sudo reboot
*Execute the stop script, followed by the start script
<pre># ./ngp-stop-services.sh
# ./ngp-start-services.sh
</pre>
</pre>


==== To restart the applicance ====
==== To shutdown the appliance ====
<pre>$ ./ngp-stop-services.sh


*24 services need to be&nbsp;stopped first
...wait until all services have been stopped...
*Execute the stop script, followed by "shutdown -r"&nbsp;
<pre># ./ngp-stop-services.sh
# shutdown -r now</pre>


==== To shutdown&nbsp;the applicance ====
$ sudo shutdown -h now
 
</pre>
*24 services need to be&nbsp;stopped first
*Execute the stop script, followed by "shutdown -h"
<pre># ./ngp-stop-services.sh
# shutdown -h now</pre>


&nbsp;
It may take several minutes before the power is cut-off.

Latest revision as of 06:58, 19 April 2020

Introduction

 

 

To minimize the chances of data corruption and consequently loss of data, it is required to use the scripts provided for restarting, rebooting or shutting down the virtual of physical appliance.

 

Solution

Script location

You don't have to be root to run these scripts.

  • Using the SSH client of your choice, login as nGPadmin
  • Change to /opt/ngp/appliancetv
$ cd /opt/ngp/appliance

 

Running the script

To restart all services without rebooting the appliance

$ ./ngp-stop-services.sh 

...followed by...

$ ./ngp-start-services.sh

To reboot the appliance

$ ./ngp-stop-services.sh

...wait until all services have been stopped...

$ sudo reboot

To shutdown the appliance

$ ./ngp-stop-services.sh

...wait until all services have been stopped...

$ sudo shutdown -h now

It may take several minutes before the power is cut-off.