Fix startup scripts in prod install

This commit is contained in:
Stephan Oeste
2022-07-07 12:19:51 +02:00
parent 4390d520e7
commit d26a60ef09
4 changed files with 29 additions and 7 deletions

View File

@@ -0,0 +1,22 @@
[Unit]
Description=Elementsd
After=network.target
[Service]
ExecStart=/usr/local/bin/elementsd -daemon -printtoconsole -chain=liquidtestnet -pid=/elements/elements-testnet.pid
ExecStop=/usr/local/bin/elements-cli stop
Type=forking
PIDFile=/elements/elements-testnet.pid
Restart=on-failure
User=elements
Group=elements
PrivateTmp=true
ProtectSystem=full
NoNewPrivileges=true
PrivateDevices=true
[Install]
WantedBy=multi-user.target