Skip to content

Commit

Permalink
systemd service file: add RestartSec=10s
Browse files Browse the repository at this point in the history
HostManager can crash and restart really quickly, so this
rate-limiting is necessary on some systems to prevent systemd from
giving up on the service.
  • Loading branch information
mhasself committed Aug 18, 2023
1 parent c8d1fc5 commit cf39d9c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/user/centralized_management.rst
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,7 @@ should look something like this::
ExecStart=/home/ocs/git/ocs-site-configs/my-lab/launcher-hm-server5.sh
User=ocs
Restart=always
RestartSec=10s

[Install]
WantedBy=multi-user.target
Expand Down
1 change: 1 addition & 0 deletions ocs/ocs_systemd.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
ExecStart={cmd}
User={service_user}
Restart=always
RestartSec=10s
{environment_lines}
[Install]
Expand Down

0 comments on commit cf39d9c

Please sign in to comment.