Skip to content

Commit

Permalink
Adding back systemd service file example (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
anitschke authored Mar 6, 2023
1 parent 30585ed commit 2056503
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
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

0 comments on commit 2056503

Please # to comment.