Skip to content

Commit

Permalink
scripts/systemd: update services (#1440)
Browse files Browse the repository at this point in the history
  • Loading branch information
shumvgolove authored and epoberezkin committed Jan 24, 2025
1 parent 426bf68 commit be81fe1
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions scripts/main/smp-server.service
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,21 @@ Description=SMP server
User=smp
Group=smp
Type=simple

ExecStart=/usr/local/bin/smp-server start +RTS -N -RTS
ExecStopPost=/usr/local/bin/simplex-servers-stopscript smp-server

LimitNOFILE=65535
KillSignal=SIGINT

TimeoutStartSec=infinity
TimeoutStopSec=infinity

Restart=on-failure
RestartSec=10s
StartLimitBurst=3
StartLimitInterval=60s

AmbientCapabilities=CAP_NET_BIND_SERVICE

[Install]
Expand Down
9 changes: 9 additions & 0 deletions scripts/main/xftp-server.service
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,21 @@ Description=XFTP server
User=xftp
Group=xftp
Type=simple

ExecStart=/usr/local/bin/xftp-server start +RTS -N -RTS
ExecStopPost=/usr/local/bin/simplex-servers-stopscript xftp-server

LimitNOFILE=65535
KillSignal=SIGINT

TimeoutStartSec=infinity
TimeoutStopSec=infinity

Restart=on-failure
RestartSec=10s
StartLimitBurst=3
StartLimitInterval=60s

AmbientCapabilities=CAP_NET_BIND_SERVICE

[Install]
Expand Down

0 comments on commit be81fe1

Please sign in to comment.