Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] incus: fix check script
@ 2024-08-02 17:54 akarelas
  2024-08-02 17:58 ` classabbyamp
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: akarelas @ 2024-08-02 17:54 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1014 bytes --]

There is a new pull request by akarelas against master on the void-packages repository

https://github.com/akarelas/void-packages pr-akarelas-incus
https://github.com/void-linux/void-packages/pull/51609

incus: fix check script
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

#### Reason for making it
The line `exec 2>&1` in the beginning of `incus-user/check` would stop the execution of the script right there, and would return a non-zero value, making `sv restart incus-user` show a timeout (after 7 seconds), like this:

```
-bash-5.2# sv start incus-user
timeout: run: incus-user: (pid 9181) 7s
```

Placing `2>&1` at the right point, the execution of `sv restart incus-user` is like this:

```
-bash-5.2# sv restart incus-user
ok: run: incus-user: (pid 9370) 0s
```

...in less than a second.

A patch file from https://github.com/void-linux/void-packages/pull/51609.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-pr-akarelas-incus-51609.patch --]
[-- Type: text/x-diff, Size: 624 bytes --]

From 50f736d9769f3280bf3b33be7fae3d4c809271b6 Mon Sep 17 00:00:00 2001
From: Alexander Karelas <karjala@cpan.org>
Date: Fri, 2 Aug 2024 20:46:25 +0300
Subject: [PATCH] incus: fix check script

---
 srcpkgs/incus/files/incus-user/check | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/srcpkgs/incus/files/incus-user/check b/srcpkgs/incus/files/incus-user/check
index d4d7293364e8d8..0efa9073216f7d 100755
--- a/srcpkgs/incus/files/incus-user/check
+++ b/srcpkgs/incus/files/incus-user/check
@@ -1,3 +1,2 @@
 #!/bin/sh
-exec 2>&1
-exec incus config show >/dev/null
+exec incus config show >/dev/null 2>&1

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-08-02 18:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-08-02 17:54 [PR PATCH] incus: fix check script akarelas
2024-08-02 17:58 ` classabbyamp
2024-08-02 17:59 ` [PR PATCH] [Updated] " akarelas
2024-08-02 18:00 ` akarelas
2024-08-02 18:11 ` [PR PATCH] [Merged]: " classabbyamp

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).