Skip to content

Commit be81fe1

Browse files
shumvgoloveepoberezkin
authored andcommitted
scripts/systemd: update services (#1440)
1 parent 426bf68 commit be81fe1

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

scripts/main/smp-server.service

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,21 @@ Description=SMP server
55
User=smp
66
Group=smp
77
Type=simple
8+
89
ExecStart=/usr/local/bin/smp-server start +RTS -N -RTS
910
ExecStopPost=/usr/local/bin/simplex-servers-stopscript smp-server
11+
1012
LimitNOFILE=65535
1113
KillSignal=SIGINT
14+
1215
TimeoutStartSec=infinity
1316
TimeoutStopSec=infinity
17+
18+
Restart=on-failure
19+
RestartSec=10s
20+
StartLimitBurst=3
21+
StartLimitInterval=60s
22+
1423
AmbientCapabilities=CAP_NET_BIND_SERVICE
1524

1625
[Install]

scripts/main/xftp-server.service

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,21 @@ Description=XFTP server
55
User=xftp
66
Group=xftp
77
Type=simple
8+
89
ExecStart=/usr/local/bin/xftp-server start +RTS -N -RTS
910
ExecStopPost=/usr/local/bin/simplex-servers-stopscript xftp-server
11+
1012
LimitNOFILE=65535
1113
KillSignal=SIGINT
14+
1215
TimeoutStartSec=infinity
1316
TimeoutStopSec=infinity
17+
18+
Restart=on-failure
19+
RestartSec=10s
20+
StartLimitBurst=3
21+
StartLimitInterval=60s
22+
1423
AmbientCapabilities=CAP_NET_BIND_SERVICE
1524

1625
[Install]

0 commit comments

Comments
 (0)