Create Blockbook-flo.service Content
Contains the starting command for Blockbook-flo.service
This commit is contained in:
parent
36c8cee4d2
commit
45a58f28b4
38
Blockbook-flo.service Content
Normal file
38
Blockbook-flo.service Content
Normal file
@ -0,0 +1,38 @@
|
||||
[Unit]
|
||||
Description=Blockbook daemon (Flo)
|
||||
After=network.target
|
||||
Wants=backend-flo.service
|
||||
|
||||
[Service]
|
||||
ExecStart=/opt/coins/blockbook/flo/bin/blockbook -blockchaincfg=/opt/coins/blockbook/flo/config/blockchaincfg.json -datadir=/opt/coins/data/flo/blockbook/db -sync -internal=:9066 -public=:9166 -certfile=/opt/coins/blockbook/flo/cert/blockbook -explorer= -log_dir=/opt/coins/blockbook/flo/logs -dbcache=1073741824
|
||||
User=blockbook-flo
|
||||
Type=simple
|
||||
Restart=on-failure
|
||||
TimeoutStopSec=300
|
||||
WorkingDirectory=/opt/coins/blockbook/flo
|
||||
|
||||
# Resource limits
|
||||
LimitNOFILE=500000
|
||||
|
||||
# Hardening measures
|
||||
####################
|
||||
|
||||
# Provide a private /tmp and /var/tmp.
|
||||
PrivateTmp=true
|
||||
|
||||
# Mount /usr, /boot/ and /etc read-only for the process.
|
||||
ProtectSystem=full
|
||||
|
||||
# Disallow the process and all of its children to gain
|
||||
# new privileges through execve().
|
||||
NoNewPrivileges=true
|
||||
|
||||
# Use a new /dev namespace only populated with API pseudo devices
|
||||
# such as /dev/null, /dev/zero and /dev/random.
|
||||
PrivateDevices=true
|
||||
|
||||
# Deny the creation of writable and executable memory mappings.
|
||||
MemoryDenyWriteExecute=true
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Loading…
Reference in New Issue
Block a user