Merge pull request #88 from NebulousLabs/add-persistent-journal

Use journald with persistence
This commit is contained in:
Marcin Jachymiak 2020-03-13 12:40:22 -04:00 committed by GitHub
commit 8df34dace3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 4 deletions

View File

@ -0,0 +1,2 @@
[Journal]
Storage=persistent

View File

@ -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

View File

@ -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

View File

@ -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