Skip to content

Commit bc9c9fd

Browse files
authored
Merge pull request #64 from uoregon-libraries/feature/restart-on-fail
Change example systemd unit to add restarting
2 parents 52cfd61 + 919bfdf commit bc9c9fd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

rh_config/rais.service

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
[Unit]
22
Description=RAIS image server
33
After=sysinit.target
4+
StartLimitIntervalSec=0
45

56
[Service]
67
Type=simple
78
ExecStart=/usr/local/rais/rais-server
9+
Restart=on-failure
10+
RestartSec=5
11+
StartLimitBurst=5
12+
StartLimitIntervalSec=0
813

914
[Install]
1015
WantedBy=multi-user.target

0 commit comments

Comments
 (0)