|
How to Keep your Gitea Windows Service Running 24/7 with Service Protector |
Automatically restart Gitea if stops for any reason. Ensure that your DevOps platform is always available.
Gitea
is a self-hosted, all-in-one software development package that uses Git.
You can install Gitea as a Windows Service,
to start it automatically whenever your computer boots:
To monitor & safeguard Gitea with Service Protector:
-
Download and
install
Service Protector, if necessary.
-
Start Service Protector.
-
Select Protector > Add to open the Add Protector window:
-
On the General tab, in the Service to protect drop-down, select your Gitea service.
It's named gitea on our Windows Server 2022 machine:
-
If Gitea ever hangs and stops responding to web requests, we'd like Service Protector to restart the service.
Let's set up a "sanity check" to do just that.
-
Switch to the Monitor tab. Check the Whenever it fails a periodic sanity check box and click the Set button:
-
In the Add Sanity Check window, select the Check that a web server is responding properly
option and click Next to proceed:
-
Enter the URL you use to access your Gitea server. That's probably http://localhost:3000, like it was on our machine.
Click Next to continue.
-
Specify how often Service Protector should verify the URL.
The default of every 5 minutes should be fine but you can check more often if you like.
After you're done, click Next to move on.
-
And finally, confirm your settings:
If everything looks good, click Add
to record your new sanity check and return to the Monitor tab.
-
We're done configuring Gitea so click the Save button.
In a few seconds, a new entry named "gitea" will appear in the Service Protector window.
The green shield indicates that Service Protector is already actively monitoring the Gitea Windows Service —
to quickly detect and respond to failures:
You can click the green "Running" circle to see how the Gitea service/executable is doing:
-
That's it! Next time your computer boots, Gitea will start automatically and Service Protector will babysit the service to
promptly restart it if it stops for any reason.
We encourage you to edit your Gitea entry in Service Protector and check out the many other settings that may be appropriate for your environment.
For example, send an email if the service fails, restart Gitea once a week to keep it "fresh", and much more.
Trouble protecting the Gitea Windows Service?
|
Peace of mind for your important Windows Services!
|
|
|
Step-by-step guides for 70+ Services
|