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

Document systemd setup #20

Closed
mweirauch opened this issue Dec 22, 2021 · 0 comments · Fixed by #29
Closed

Document systemd setup #20

mweirauch opened this issue Dec 22, 2021 · 0 comments · Fixed by #29
Labels
documentation Improvements or additions to documentation pr-for-issue A PR exists for this issue
Milestone

Comments

@mweirauch
Copy link
Owner

A nice example was given in this issue.

# Install dropignore to ~/.local/bin and, copy this file as ~/.config/systemd/user/dropignore.service
# (The location of Dropbox folder is ~/Dropbox, change it if necessary)
#
# Enable service:
#   systemctl --user daemon-reload
#   systemctl enable --now --user dropignore.service
#
# Make sure it works:
#   journalctl --user-unit=dropignore --follow

[Unit]
Description=Watch Dropbox folder for ignored paths
ConditionPathIsDirectory=%h/Dropbox
ConditionFileIsExecutable=%h/.local/bin/dropignore

[Service]
ExecStart=%h/.local/bin/dropignore watch %h/Dropbox
Restart=on-failure

[Install]
WantedBy=graphical.target

My personal one which I use for ~1.5 years (custom dev paths):

[Unit]
Description=dropignore

[Service]
ExecStart=%h/.cargo/bin/dropignore watch /path/to/my/dropbox

[Install]
WantedBy=default.target
@mweirauch mweirauch added this to the next milestone Dec 22, 2021
@mweirauch mweirauch modified the milestones: 0.1.2, next Dec 13, 2023
@mweirauch mweirauch added documentation Improvements or additions to documentation pr-for-issue A PR exists for this issue labels Mar 7, 2024
@mweirauch mweirauch modified the milestones: backlog, 0.1.2 May 26, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
documentation Improvements or additions to documentation pr-for-issue A PR exists for this issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant