Use journald with persistence
This commit is contained in:
parent
4e5aca4998
commit
ccddff4b6a
|
@ -0,0 +1,2 @@
|
||||||
|
[Journal]
|
||||||
|
Storage=persistent
|
|
@ -75,3 +75,8 @@ cp siad-upload.service ~/.config/systemd/user/siad-upload.service
|
||||||
mkdir -p ~/.sia
|
mkdir -p ~/.sia
|
||||||
cp sia.env ~/.sia/
|
cp sia.env ~/.sia/
|
||||||
cp sia.env ~/.sia/sia-upload.env
|
cp sia.env ~/.sia/sia-upload.env
|
||||||
|
|
||||||
|
# Setup persistent journal
|
||||||
|
sudo mkdir -p /var/log/journal
|
||||||
|
sudo cp journald.conf /etc/systemd/journald.conf
|
||||||
|
sudo systemctl restart systemd-journald
|
||||||
|
|
|
@ -9,8 +9,6 @@ ExecStart=/home/user/go/bin/siad --api-addr "localhost:9970" --rpc-addr ":9971"
|
||||||
ExecStop=/home/user/go/bin/siac --addr "localhost:9970" stop
|
ExecStop=/home/user/go/bin/siac --addr "localhost:9970" stop
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
SyslogIdentifier=siad-upload
|
SyslogIdentifier=siad-upload
|
||||||
StandardOutput=file:/home/user/siad-upload/output.log
|
|
||||||
StandardError=file:/home/user/siad-upload/error.log
|
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=default.target
|
WantedBy=default.target
|
||||||
|
|
|
@ -9,8 +9,6 @@ ExecStart=/home/user/go/bin/siad
|
||||||
ExecStop=/home/user/go/bin/siac stop
|
ExecStop=/home/user/go/bin/siac stop
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
SyslogIdentifier=siad
|
SyslogIdentifier=siad
|
||||||
StandardOutput=file:/home/user/siad/output.log
|
|
||||||
StandardError=file:/home/user/siad/error.log
|
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=default.target
|
WantedBy=default.target
|
||||||
|
|
Reference in New Issue