mirror of
https://github.com/hoytech/strfry.git
synced 2025-06-18 09:17:12 +00:00
Systemd service file is more robust
This commit is contained in:
@ -19,7 +19,7 @@ The goal is to have:
|
|||||||
|
|
||||||
The remainder of the document assumes a plain VPS.
|
The remainder of the document assumes a plain VPS.
|
||||||
|
|
||||||
Vultr
|
Vultr - $12/mo
|
||||||
- High performance Intel
|
- High performance Intel
|
||||||
- 1 vCPU
|
- 1 vCPU
|
||||||
- 2048 MB Ram
|
- 2048 MB Ram
|
||||||
@ -114,9 +114,14 @@ Put the following file at /etc/systemd/system/strfry.service
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
User=strfry
|
User=strfry
|
||||||
ExecStart=/usr/bin/local/strfry relay
|
ExecStart=/usr/local/bin/strfry relay
|
||||||
Restart=always
|
Restart=on-failure
|
||||||
RestartSec=10
|
RestartSec=5
|
||||||
|
ProtectHome=yes
|
||||||
|
NoNewPrivileges=yes
|
||||||
|
ProtectSystem=full
|
||||||
|
LimitNOFILE=65536
|
||||||
|
LimitCORE=1000000000
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
Reference in New Issue
Block a user