Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Adding back systemd service file example #9

Merged
merged 1 commit into from
Mar 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ For example the following config can be used to show a directory full of photos
```

## Automatically Mounting
The current recommendation to automatically mount is to use a systemd service file to automatically run `photo-db-fs`. For example see we could write the following `photo-db-fs.service` file.
The current recommendation to automatically mount is to use a systemd service file to automatically run `photo-db-fs`. For example see we could write the following [`photo-db-fs.service`](./photo-db-fs.service) file.
```ini
[Unit]
Description=photo-db-fs FUSE file system server
Expand Down
9 changes: 9 additions & 0 deletions photo-db-fs.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[Unit]
Description=photo-db-fs FUSE file system server

[Service]
Type=simple
ExecStart=/home/anitschk/go/bin/photo-db-fs --mount-point /srv/media/photo-db-fs --db-type digikam-sqlite --db-source /srv/media/digiKamDB/digikam4.db

[Install]
WantedBy=default.target