dotfiles/services/.config/systemd/user/commit_notes.service
Marty Oehme 98377fdf00
[services] Add note sync service
Added service to automatically commit changes in notes directory (every
2 minutes) and automatically push them to their remote origin (after no
  changes occured for an hour).

Uses git and systemd to work as a service in the background. Gets
restarted on failure.
2020-06-06 09:22:14 +02:00

13 lines
278 B
Desktop File

[Unit]
Description=Automatically commit notes in directory
After=graphical.target
[Service]
Type=simple
Environment=TIME_TO_COMMIT=120 UNCHANGED_RUNS_TO_PUSH=30
ExecStart=/bin/bash -c '%h/.local/share/services/git-sync'
Restart=on-failure
[Install]
WantedBy=multi-user.target