services: Fix commit_notes service autostart

Used wrong 'after' designation which would wait forever since it needed
to start after the runlevel which it was designated to run at.

Committed default.target.wants symlink to service file to automatically
enable its autostart on new machines.

This wil only really work for my directory set-up, so perhaps either the
service module should be disabled by default for the installation, be
asked during installation, or simply be manually enabled to autostart
during initial set-up (maybe mention in readme for the module).
This commit is contained in:
Marty Oehme 2020-07-23 23:37:53 +02:00
parent b280e4f9ae
commit 90fcf81dfd
No known key found for this signature in database
GPG Key ID: 0CCB0526EFB9611A
2 changed files with 3 additions and 3 deletions

View File

@ -1,13 +1,12 @@
[Unit]
Description=Automatically commit notes in directory
After=default.target
Description=Automatically commit notes in university directory
[Service]
Type=simple
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'
# Restart=on-failure
Restart=on-failure
[Install]
WantedBy=default.target

View File

@ -0,0 +1 @@
../commit_notes.service