Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for systemd watchdog timer #427

Merged
merged 11 commits into from
Mar 31, 2024
Merged

Add support for systemd watchdog timer #427

merged 11 commits into from
Mar 31, 2024

Conversation

csstaub
Copy link
Member

@csstaub csstaub commented Mar 23, 2024

This adds support for systemd watchdog timer. Still need to add more tests.

Copy link

codecov bot commented Mar 23, 2024

Codecov Report

Attention: Patch coverage is 97.26027% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 79.12%. Comparing base (3a8fd6e) to head (d4c6720).
Report is 2 commits behind head on master.

Files Patch % Lines
status.go 96.66% 0 Missing and 1 partial ⚠️
status_linux.go 97.05% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #427      +/-   ##
==========================================
+ Coverage   78.40%   79.12%   +0.72%     
==========================================
  Files          31       33       +2     
  Lines        2135     2204      +69     
==========================================
+ Hits         1674     1744      +70     
+ Misses        381      380       -1     
  Partials       80       80              
Flag Coverage Δ
darwin 77.91% <97.43%> (+0.45%) ⬆️
linux 84.13% <97.01%> (+0.64%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@csstaub
Copy link
Member Author

csstaub commented Mar 30, 2024

Template for a systemd service file (requires systemd >=253):

[Unit]
Description=Ghostunnel
After=network.target

[Service]
Type=notify-reload
ExecStart=...
ReloadSignal=SIGUSR1
WatchdogSec=1
Restart=always

[Install]
WantedBy=default.target

@csstaub csstaub merged commit c66fe3c into master Mar 31, 2024
11 checks passed
@csstaub csstaub deleted the cs/systemd-notify branch March 31, 2024 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant