2020-06-06 07:22:14 +00:00
|
|
|
[Unit]
|
2020-07-23 21:37:53 +00:00
|
|
|
Description=Automatically commit notes in university directory
|
2020-09-21 07:07:38 +00:00
|
|
|
After=display-manager.service
|
2020-06-06 07:22:14 +00:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
2020-06-17 19:00:41 +00:00
|
|
|
Environment=GS_TIME_TO_COMMIT=120 GS_UNCHANGED_RUNS_TO_PUSH=30
|
|
|
|
# workaround to allow relative executable invocation (i.e. current users' home dir)
|
|
|
|
ExecStart=/bin/bash -c '%h/.local/share/services/git-sync %h/documents/notes/uni'
|
2020-07-23 21:37:53 +00:00
|
|
|
Restart=on-failure
|
2020-06-06 07:22:14 +00:00
|
|
|
|
|
|
|
[Install]
|
2020-06-17 19:00:41 +00:00
|
|
|
WantedBy=default.target
|