Create Backend-flo.service Content

Contains the starting command for backend-flo.service
This commit is contained in:
sahaj05 2023-09-18 12:49:21 +05:30 committed by GitHub
parent 90b2e31a80
commit 36c8cee4d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,42 @@
[Unit]
Description=Flo backend daemon
After=network.target
[Service]
ExecStart=/opt/coins/nodes/flo/bin/flod -datadir=/opt/coins/data/flo/backend -conf=/opt/coins/nodes/flo/flo.conf -pid=/run/flo/flo.pid
User=flo
Restart=on-failure
TimeoutStopSec=300
WorkingDirectory=/opt/coins/nodes/flo
Type=forking
RuntimeDirectory=flo
PIDFile=/run/flo/flo.pid
# 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