Welcome Guest to Defaut site!

Restart Starman Server

1. Overview

The Restart Starman Server feature allows administrators to restart the Starman application server directly from the web interface. This is particularly useful after pulling new code from the Git repository or when troubleshooting application issues.

Starman is a high-performance PSGI/Plack web server that runs our Catalyst application. Occasionally, it needs to be restarted to apply code changes or configuration updates.

2. Usage

To restart the Starman server:

  1. Log in with an account that has the 'admin' role
  2. Navigate to the Admin Dashboard
  3. Under System Management, click on "Restart Starman Server"
  4. Review the warning about service interruption
  5. Click "Yes, Restart Starman Server" to confirm
  6. Wait for the restart process to complete
  7. Review the command output and service status
Warning: Restarting the Starman server will temporarily interrupt service to all users. The application will be unavailable for a few seconds during the restart process.

3. Security

The Restart Starman feature includes several security measures:

To configure sudo properly, add the following to your sudoers file (using visudo):

www-data ALL=(ALL) NOPASSWD: /bin/systemctl restart starman
www-data ALL=(ALL) NOPASSWD: /bin/systemctl status starman

Replace www-data with the user your web server runs as (e.g., apache, nginx, etc.).

4. Troubleshooting

If you encounter issues with the Restart Starman feature:

For more detailed troubleshooting, check the application logs at:

/home/shanta/PycharmProjects/comserv2/Comserv/logs/application.log

5. Workflow

The typical workflow for updating the application is:

  1. Use the Git Pull feature to update the codebase:
  2. Use the Restart Starman Server feature to apply the changes:
  3. Check the application logs for any errors:

This workflow ensures that code updates are properly applied and that the application is running correctly after changes.

Tip: It's a good practice to perform these operations during low-traffic periods to minimize disruption to users.