This repository has been archived on 2022-10-07. You can view files and clone it, but cannot push or open issues or pull requests.
skynet-webportal/setup-scripts/siad.service

16 lines
385 B
SYSTEMD

[Unit]
Description=siad
[Service]
Type=simple
WorkingDirectory=/home/user/siad
Environment="SIA_DATA_DIR=/home/user/siad"
Environment="SIA_API_PASSWORD=$(cat /home/user/.sia/apipassword)"
Environment="SIA_WALLET_PASSWORD=$(cat /home/user/.sia/walletpassword)"
ExecStart=/home/user/go/bin/siad
ExecStop=/home/user/go/bin/siac stop
Restart=on-failure
[Install]
WantedBy=default.target