remove log from systemd service

This commit is contained in:
Ruslan Kuchumov
2021-05-24 12:55:03 +03:00
parent 2be75e688a
commit 6c3b2de9a7
2 changed files with 13 additions and 1 deletions

View File

@@ -77,6 +77,18 @@ to call `./scripts/tc-add.sh` script:
./scripts/tc-add.sh -f <path-to-file> -d <DOI>
```
## Systemd service
Make sure TIKA jar files is installed to `/usr/share/java/tika-app.jar`, or
change the path in the service file.
```bash
mkdir -p ~/.config/systemd/user/
cp trashcan.service ~/.config/systemd/user/
systemctl --user enable trashcan
systemctl --user start trashcan
```
# Screenshots
[![search](docs/img/img1.png)](docs/img/img1.png)

View File

@@ -5,7 +5,7 @@ After=network-online.target
[Service]
Environment=TIKA_JAR_PATH=/usr/share/java/tika-app.jar
ExecStart=trashcan --log /var/log/trashcan.log
ExecStart=trashcan
[Install]
WantedBy=default.target