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

client, server systemd units: make Restart=always truly respected #184

Merged
merged 2 commits into from
Jan 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions client/innernet@.service
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ PartOf=innernet.target
Type=simple
ExecStart=/usr/bin/innernet up %i --daemon --interval 60
Restart=always
# When the daemon exits, wait this amount of secs before restarting. Used to prevent StartLimitBurst
# (5 by default) restarts happening within StartLimitIntervalSec (10 by default) after which systemd
# would refrain from restarting innernet anymore.
RestartSec=10

[Install]
WantedBy=multi-user.target
2 changes: 2 additions & 0 deletions server/innernet-server@.service
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ Type=simple
Environment="RUST_LOG=info"
ExecStart=/usr/bin/innernet-server serve %i
Restart=always
# When the daemon exits, wait this amount of secs before restarting instead of default 100ms.
RestartSec=1

[Install]
WantedBy=multi-user.target