Merge pull request #88 from NebulousLabs/add-persistent-journal
Use journald with persistence
This commit is contained in:
commit
8df34dace3
|
@ -0,0 +1,2 @@
|
|||
[Journal]
|
||||
Storage=persistent
|
|
@ -75,3 +75,8 @@ cp siad-upload.service ~/.config/systemd/user/siad-upload.service
|
|||
mkdir -p ~/.sia
|
||||
cp sia.env ~/.sia/
|
||||
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
|
||||
Restart=on-failure
|
||||
SyslogIdentifier=siad-upload
|
||||
StandardOutput=file:/home/user/siad-upload/output.log
|
||||
StandardError=file:/home/user/siad-upload/error.log
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
|
|
|
@ -9,8 +9,6 @@ ExecStart=/home/user/go/bin/siad
|
|||
ExecStop=/home/user/go/bin/siac stop
|
||||
Restart=on-failure
|
||||
SyslogIdentifier=siad
|
||||
StandardOutput=file:/home/user/siad/output.log
|
||||
StandardError=file:/home/user/siad/error.log
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
|
|
Reference in New Issue