From fb38ec056bdb01bdc8d9e61e0acebddd8aea9fb2 Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Sat, 22 Jul 2023 00:08:12 +0200 Subject: add update_repo.sh and unit files --- unitfiles/aurbuilder-package.service | 1 + unitfiles/aurbuilder-repo.service | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 unitfiles/aurbuilder-repo.service (limited to 'unitfiles') diff --git a/unitfiles/aurbuilder-package.service b/unitfiles/aurbuilder-package.service index 228e87a..93cd838 100644 --- a/unitfiles/aurbuilder-package.service +++ b/unitfiles/aurbuilder-package.service @@ -9,3 +9,4 @@ ExecStart=/usr/lib/aurbuilder/build_packages.sh Restart=no StartLimitInterval=10min StartLimitBurst=8 +OnSuccess=aurbuilder-repo.service diff --git a/unitfiles/aurbuilder-repo.service b/unitfiles/aurbuilder-repo.service new file mode 100644 index 0000000..7b6c157 --- /dev/null +++ b/unitfiles/aurbuilder-repo.service @@ -0,0 +1,11 @@ +[Unit] +Description=aurbuilder Update repository database + +[Service] +Type=simple +User=aurbuilder +Group=aurbuilder +ExecStart=/usr/lib/aurbuilder/update_repo.sh +Restart=no +StartLimitInterval=10min +StartLimitBurst=8 -- cgit v1.2.3