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:
Log in with an account that has the 'admin' role
Navigate to the Admin Dashboard
Under System Management, click on "Restart Starman Server"
Review the warning about service interruption
Click "Yes, Restart Starman Server" to confirm
Wait for the restart process to complete
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:
Role-based access control: Only users with the 'admin' role in their session can access this feature
Confirmation page: A confirmation step prevents accidental restarts
Detailed logging: All restart attempts are logged with user information for accountability
Sudo configuration: The web server user must have sudo privileges specifically for the systemctl restart starman command
To configure sudo properly, add the following to your sudoers file (using visudo):