Running in user (Assume) : salinem We never used this username in our production !
Ensure you have add sudoers, refer
export HOME="/mainnet/salinem"
cat > ${HOME}/systemd/gitopia-node.service <<EOF
[Unit]
Description=Gitopia node service
After=network-online.target
[Service]
User=gitopia
ExecStart=${HOME}/bin/gitopiad start
Restart=on-failure
RestartSec=3
LimitNOFILE=500000
LimitNPROC=500000
Environment="HOME=${HOME}"
[Install]
WantedBy=multi-user.target
EOF
ln -sf ${HOME}/systemd/gitopia-node.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable gitopia-node.service
sudo systemctl start gitopia-node.service
sudo systemctl status gitopia-node.service
sudo journalctl -fu gitopia-node.service