diff options
author | Erich Eckner <git@eckner.net> | 2021-07-04 19:38:52 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2021-07-04 19:38:52 +0200 |
commit | fb5b95bf29dba5d213a19cf65d95f90ed437a9c6 (patch) | |
tree | ceb733db4600acb3cefbe5c9460dadb13a80916f | |
parent | 9b74e4da0e44ee22a7de4d1a7cd51cec64e07544 (diff) | |
download | build-knecht-fb5b95bf29dba5d213a19cf65d95f90ed437a9c6.tar.xz |
run in screen
-rwxr-xr-x | build-knecht | 22 | ||||
-rw-r--r-- | build-knecht-any.service | 6 | ||||
-rw-r--r-- | build-knecht.service | 6 |
3 files changed, 19 insertions, 15 deletions
diff --git a/build-knecht b/build-knecht index 52527b2..3cc7c29 100755 --- a/build-knecht +++ b/build-knecht @@ -22,14 +22,18 @@ if ! git -C "${home_dir}/archlinuxewe" pull --ff-only; then >&2 echo 'Cannot update archPackages repository.' fi -"${home_dir}/archlinuxewe/update-sources" +while true; do -"${home_dir}/archlinuxewe/archPackagesUpdate" \ - --no-abortOnMakepkgError \ - --arch "${arch}" \ -|| "${home_dir}/archlinuxewe/archPackagesUpdate" \ - --cleanChroot \ - --arch "${arch}" \ -|| true + "${home_dir}/archlinuxewe/update-sources" -sleep 60 + "${home_dir}/archlinuxewe/archPackagesUpdate" \ + --no-abortOnMakepkgError \ + --arch "${arch}" \ + || "${home_dir}/archlinuxewe/archPackagesUpdate" \ + --cleanChroot \ + --arch "${arch}" \ + || true + + sleep 60 + +done diff --git a/build-knecht-any.service b/build-knecht-any.service index 6b67f6b..3eccb53 100644 --- a/build-knecht-any.service +++ b/build-knecht-any.service @@ -3,9 +3,9 @@ Description=Build-Knecht for any architecture [Service] User=makepkg -ExecStart=/usr/src/build-knecht/build-knecht any -Restart=on-success -RestartSec=60 +ExecStart=/usr/bin/screen -d -m /usr/src/build-knecht/build-knecht any +Type=oneshot +RemainAfterExit=yes [Install] WantedBy=multi-user.target diff --git a/build-knecht.service b/build-knecht.service index ccd5fa2..bc8a09c 100644 --- a/build-knecht.service +++ b/build-knecht.service @@ -3,9 +3,9 @@ Description=Build-Knecht [Service] User=makepkg -ExecStart=/usr/src/build-knecht/build-knecht -Restart=on-success -RestartSec=60 +ExecStart=/usr/bin/screen -d -m /usr/src/build-knecht/build-knecht +Type=oneshot +RemainAfterExit=yes [Install] WantedBy=multi-user.target |