Marty Oehme
98377fdf00
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.
12 lines
278 B
Desktop File
12 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
|