diff --git a/Perso/systemd_timers/gitUpdate.service b/Perso/systemd_timers/gitUpdate.service new file mode 100644 index 0000000..a38072d --- /dev/null +++ b/Perso/systemd_timers/gitUpdate.service @@ -0,0 +1,7 @@ +[Unit] +Description=Updates git repos + +[Service] +Type=oneshot +User=intech +ExecStart=/bin/bash ~/git_repos/gitUpdate.sh "/home/intech/git_repos/TechTheTachyon-HighLevel.git" "/home/intech/git_repos/TechTheTachyon-LowLevel.git" \ No newline at end of file diff --git a/Perso/systemd_timers/gitUpdate.timer b/Perso/systemd_timers/gitUpdate.timer new file mode 100644 index 0000000..5110325 --- /dev/null +++ b/Perso/systemd_timers/gitUpdate.timer @@ -0,0 +1,9 @@ +[Unit] +Description=Updates git repos + +[Timer] +OnBootSec=5min +OnUnitActiveSec=1min + +[Install] +WantedBy=timers.target