Introduction
Replicated is the service that manages the Terraform Enterprise application in a Replicated-based installation. It provides a command-line tool, replicatedctl, to control various aspects of both the Replicated service and Terraform Enterprise.
In certain situations, you may need to restart the Terraform Enterprise application. This guide provides the procedure to stop, start, and monitor the service using replicatedctl.
Procedure
Follow these steps to restart the Terraform Enterprise application.
Check the current application status.
Use the
replicatedctl app statuscommand to view detailed information on the status of Terraform Enterprise. This displays the currentStateof the application and itsDesiredState.$ replicatedctl app status [ { "AppID": "76519cce25564f315111cf0030829e3d", "Sequence": 421, "PatchSequence": 0, "State": "started", "DesiredState": "started", "Error": "", "IsCancellable": false, "IsTransitioning": false } ]Stop the Terraform Enterprise application.
Use the
replicatedctl app stopcommand. This is equivalent to clicking the "Stop Now" button in the Replicated console on port8800.$ replicatedctl app stop App is stopping
Verify the application is stopped.
During the shutdown process, the application
Statetransitions tostopped. You can monitor this by runningreplicatedctl app statusagain.$ replicatedctl app status [ { "AppID": "76519cce25564f315111cf0030829e3d", "Sequence": 421, "PatchSequence": 0, "State": "stopped", "DesiredState": "stopped", "Error": "", "IsCancellable": true, "IsTransitioning": true } ]Start the Terraform Enterprise application.
Once you have verified that the application state is
stopped, issue thereplicatedctl app startcommand. This is equivalent to clicking the "Start Now" button in the Replicated console.$ replicatedctl app start App is starting
Confirm the application has restarted.
Monitor the
Stateof the application by runningreplicatedctl app status. Once the application has fully started, theStatevalue will return tostarted.$ replicatedctl app status [ { "AppID": "76519cce25564f315111cf0030829e3d", "Sequence": 421, "PatchSequence": 0, "State": "started", "DesiredState": "started", "Error": "", "IsCancellable": false, "IsTransitioning": false } ]
Additional Information
For more details on managing Terraform Enterprise, please refer to the official documentation on administrative tools and commands.