update-repos/update-repos@.service
Thorsten Schubert 8549f49c17
All checks were successful
/ build (push) Successful in 44s
Use environment variable to determine service
2024-05-07 16:21:50 +02:00

19 lines
452 B
Desktop File

; vi: set ft=systemd:
[Unit]
Description=Update git repositories in /%I
[Service]
Type=oneshot
Environment=SYSTEMD_SERVICE=true
Environment=DEPTH="-max-depth=5"
Environment=LOG_LEVEL="-log-level=info"
Environment=FORCE="-force"
Environment=VERBOSE="-verbose"
; Allow for grace period after login session is established
TimeoutStartSec=5m
ExecStartPre=/usr/bin/sleep 120s
ExecStart=/usr/local/bin/update-repos $VERBOSE $LOG_LEVEL $DEPTH $FORCE /%I