mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-05-02 06:36:22 -04:00
add vps scripts for reference
This commit is contained in:
parent
a47290bac7
commit
280ed484e7
11 changed files with 222 additions and 2 deletions
36
scripts/deployment/haveno-seednode.service
Normal file
36
scripts/deployment/haveno-seednode.service
Normal file
|
@ -0,0 +1,36 @@
|
|||
[Unit]
|
||||
Description=Haveno seednode
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
User=haveno
|
||||
Group=haveno
|
||||
SyslogIdentifier=Haveno-Seednode
|
||||
|
||||
ExecStart=/bin/sh /home/haveno/haveno/haveno-seednode --baseCurrencyNetwork=XMR_STAGENET\
|
||||
--useLocalhostForP2P=false\
|
||||
--useDevPrivilegeKeys=false\
|
||||
--nodePort=2002\
|
||||
--appName=haveno-XMR_STAGENET_Seed_2002\
|
||||
# --logLevel=trace\
|
||||
--xmrNode=http://127.0.0.1:38088\
|
||||
--xmrNodeUsername=admin\
|
||||
--xmrNodePassword=password
|
||||
|
||||
ExecStop=/bin/kill ${MAINPID}
|
||||
Restart=always
|
||||
|
||||
# Hardening
|
||||
PrivateTmp=true
|
||||
ProtectSystem=full
|
||||
NoNewPrivileges=true
|
||||
PrivateDevices=true
|
||||
MemoryDenyWriteExecute=false
|
||||
ProtectControlGroups=true
|
||||
ProtectKernelTunables=true
|
||||
RestrictSUIDSGID=true
|
||||
# limit memory usage to 2gb
|
||||
LimitRSS=2000000000
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Add table
Add a link
Reference in a new issue