Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] [wip] services fixes - enhancements
@ 2022-02-03 19:50 mobinmob
  2022-02-03 19:56 ` mobinmob
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: mobinmob @ 2022-02-03 19:50 UTC (permalink / raw)
  To: ml

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

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

https://github.com/mobinmob/void-packages service-fixes
https://github.com/void-linux/void-packages/pull/35384

[wip] services fixes - enhancements
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**
<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please [skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration)
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!-- 
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-service-fixes-35384.patch --]
[-- Type: text/x-diff, Size: 1965 bytes --]

From 26fa26f035721148d3ad0ba9c76b927550176cb1 Mon Sep 17 00:00:00 2001
From: mobinmob <mobinmob@disroot.org>
Date: Thu, 3 Feb 2022 21:45:31 +0200
Subject: [PATCH] vault: fix and enhance service, add sample conf file.

---
 srcpkgs/vault/files/vault.conf    | 6 ++++++
 srcpkgs/vault/files/vault/log/run | 1 +
 srcpkgs/vault/files/vault/run     | 2 +-
 srcpkgs/vault/template            | 3 ++-
 4 files changed, 10 insertions(+), 2 deletions(-)
 create mode 100644 srcpkgs/vault/files/vault.conf
 create mode 120000 srcpkgs/vault/files/vault/log/run

diff --git a/srcpkgs/vault/files/vault.conf b/srcpkgs/vault/files/vault.conf
new file mode 100644
index 000000000000..c2a404c6cfcf
--- /dev/null
+++ b/srcpkgs/vault/files/vault.conf
@@ -0,0 +1,6 @@
+# Please configure vault according to the the documentation.
+# The contents below are the bare minimum to allow the service to run.
+
+storage "file" {
+  path = "/mnt/vault/data"
+}
diff --git a/srcpkgs/vault/files/vault/log/run b/srcpkgs/vault/files/vault/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/vault/files/vault/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/vault/files/vault/run b/srcpkgs/vault/files/vault/run
index 840cc2836921..c5b226b3045c 100644
--- a/srcpkgs/vault/files/vault/run
+++ b/srcpkgs/vault/files/vault/run
@@ -1,3 +1,3 @@
 #!/bin/sh
 
-exec chpst -u _vault vault server -config=/etc/vault/
+exec chpst -u _vault vault server -config=/etc/vault.conf
diff --git a/srcpkgs/vault/template b/srcpkgs/vault/template
index 1ba3566e77c7..ff6064bf94c5 100644
--- a/srcpkgs/vault/template
+++ b/srcpkgs/vault/template
@@ -1,7 +1,7 @@
 # Template file for 'vault'
 pkgname=vault
 version=1.9.2
-revision=1
+revision=2
 build_style=go
 go_import_path="github.com/hashicorp/vault"
 go_build_tags="release"
@@ -26,4 +26,5 @@ esac
 post_install() {
 	vlicense LICENSE
 	vsv vault
+	vconf ${FILESDIR}/vault.conf
 }

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

* Re: [wip] services fixes - enhancements
  2022-02-03 19:50 [PR PATCH] [wip] services fixes - enhancements mobinmob
@ 2022-02-03 19:56 ` mobinmob
  2022-02-03 20:01 ` [PR PATCH] [Updated] " mobinmob
                   ` (13 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: mobinmob @ 2022-02-03 19:56 UTC (permalink / raw)
  To: ml

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

New comment by mobinmob on void-packages repository

https://github.com/void-linux/void-packages/pull/35384#issuecomment-1029348142

Comment:
vault service:
- Use a config file with the -c switch instead of a directory.
- Provide a sample configuration file with the bare minimum the service needs to run (a file storage backend).
- Create a log service with vlogger.
@paper42 
@the-maldridge 

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

* Re: [PR PATCH] [Updated] [wip] services fixes - enhancements
  2022-02-03 19:50 [PR PATCH] [wip] services fixes - enhancements mobinmob
  2022-02-03 19:56 ` mobinmob
@ 2022-02-03 20:01 ` mobinmob
  2022-02-03 20:02 ` mobinmob
                   ` (12 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: mobinmob @ 2022-02-03 20:01 UTC (permalink / raw)
  To: ml

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

There is an updated pull request by mobinmob against master on the void-packages repository

https://github.com/mobinmob/void-packages service-fixes
https://github.com/void-linux/void-packages/pull/35384

[wip] services fixes - enhancements
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**
<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please [skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration)
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!-- 
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-service-fixes-35384.patch --]
[-- Type: text/x-diff, Size: 1970 bytes --]

From b81bf990c156ca86b0df2f5bb9e429697863b43f Mon Sep 17 00:00:00 2001
From: mobinmob <mobinmob@disroot.org>
Date: Thu, 3 Feb 2022 21:45:31 +0200
Subject: [PATCH] vault: fix and enhance service, add sample conf file.

---
 srcpkgs/vault/files/vault.conf    | 6 ++++++
 srcpkgs/vault/files/vault/log/run | 1 +
 srcpkgs/vault/files/vault/run     | 2 +-
 srcpkgs/vault/template            | 3 ++-
 4 files changed, 10 insertions(+), 2 deletions(-)
 create mode 100644 srcpkgs/vault/files/vault.conf
 create mode 120000 srcpkgs/vault/files/vault/log/run

diff --git a/srcpkgs/vault/files/vault.conf b/srcpkgs/vault/files/vault.conf
new file mode 100644
index 000000000000..c2a404c6cfcf
--- /dev/null
+++ b/srcpkgs/vault/files/vault.conf
@@ -0,0 +1,6 @@
+# Please configure vault according to the the documentation.
+# The contents below are the bare minimum to allow the service to run.
+
+storage "file" {
+  path = "/mnt/vault/data"
+}
diff --git a/srcpkgs/vault/files/vault/log/run b/srcpkgs/vault/files/vault/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/vault/files/vault/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/vault/files/vault/run b/srcpkgs/vault/files/vault/run
index 840cc2836921..f578ddbbbd39 100644
--- a/srcpkgs/vault/files/vault/run
+++ b/srcpkgs/vault/files/vault/run
@@ -1,3 +1,3 @@
 #!/bin/sh
 
-exec chpst -u _vault vault server -config=/etc/vault/
+exec chpst -u _vault vault server -config=/etc/vault.conf 2>&1
diff --git a/srcpkgs/vault/template b/srcpkgs/vault/template
index 1ba3566e77c7..ff6064bf94c5 100644
--- a/srcpkgs/vault/template
+++ b/srcpkgs/vault/template
@@ -1,7 +1,7 @@
 # Template file for 'vault'
 pkgname=vault
 version=1.9.2
-revision=1
+revision=2
 build_style=go
 go_import_path="github.com/hashicorp/vault"
 go_build_tags="release"
@@ -26,4 +26,5 @@ esac
 post_install() {
 	vlicense LICENSE
 	vsv vault
+	vconf ${FILESDIR}/vault.conf
 }

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

* Re: [wip] services fixes - enhancements
  2022-02-03 19:50 [PR PATCH] [wip] services fixes - enhancements mobinmob
  2022-02-03 19:56 ` mobinmob
  2022-02-03 20:01 ` [PR PATCH] [Updated] " mobinmob
@ 2022-02-03 20:02 ` mobinmob
  2022-02-03 20:09 ` [PR PATCH] [Updated] " mobinmob
                   ` (11 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: mobinmob @ 2022-02-03 20:02 UTC (permalink / raw)
  To: ml

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

New comment by mobinmob on void-packages repository

https://github.com/void-linux/void-packages/pull/35384#issuecomment-1029348142

Comment:
vault service:
- Use a config file with the -c switch instead of a directory.
- Provide a sample configuration file with the bare minimum the service needs to run (a file storage backend).
- Create a log service with vlogger.

@paper42 
@the-maldridge 

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

* Re: [PR PATCH] [Updated] [wip] services fixes - enhancements
  2022-02-03 19:50 [PR PATCH] [wip] services fixes - enhancements mobinmob
                   ` (2 preceding siblings ...)
  2022-02-03 20:02 ` mobinmob
@ 2022-02-03 20:09 ` mobinmob
  2022-02-03 20:19 ` mobinmob
                   ` (10 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: mobinmob @ 2022-02-03 20:09 UTC (permalink / raw)
  To: ml

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

There is an updated pull request by mobinmob against master on the void-packages repository

https://github.com/mobinmob/void-packages service-fixes
https://github.com/void-linux/void-packages/pull/35384

[wip] services fixes - enhancements
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**
<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please [skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration)
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!-- 
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-service-fixes-35384.patch --]
[-- Type: text/x-diff, Size: 3539 bytes --]

From b81bf990c156ca86b0df2f5bb9e429697863b43f Mon Sep 17 00:00:00 2001
From: mobinmob <mobinmob@disroot.org>
Date: Thu, 3 Feb 2022 21:45:31 +0200
Subject: [PATCH 1/2] vault: fix and enhance service, add sample conf file.

---
 srcpkgs/vault/files/vault.conf    | 6 ++++++
 srcpkgs/vault/files/vault/log/run | 1 +
 srcpkgs/vault/files/vault/run     | 2 +-
 srcpkgs/vault/template            | 3 ++-
 4 files changed, 10 insertions(+), 2 deletions(-)
 create mode 100644 srcpkgs/vault/files/vault.conf
 create mode 120000 srcpkgs/vault/files/vault/log/run

diff --git a/srcpkgs/vault/files/vault.conf b/srcpkgs/vault/files/vault.conf
new file mode 100644
index 000000000000..c2a404c6cfcf
--- /dev/null
+++ b/srcpkgs/vault/files/vault.conf
@@ -0,0 +1,6 @@
+# Please configure vault according to the the documentation.
+# The contents below are the bare minimum to allow the service to run.
+
+storage "file" {
+  path = "/mnt/vault/data"
+}
diff --git a/srcpkgs/vault/files/vault/log/run b/srcpkgs/vault/files/vault/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/vault/files/vault/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/vault/files/vault/run b/srcpkgs/vault/files/vault/run
index 840cc2836921..f578ddbbbd39 100644
--- a/srcpkgs/vault/files/vault/run
+++ b/srcpkgs/vault/files/vault/run
@@ -1,3 +1,3 @@
 #!/bin/sh
 
-exec chpst -u _vault vault server -config=/etc/vault/
+exec chpst -u _vault vault server -config=/etc/vault.conf 2>&1
diff --git a/srcpkgs/vault/template b/srcpkgs/vault/template
index 1ba3566e77c7..ff6064bf94c5 100644
--- a/srcpkgs/vault/template
+++ b/srcpkgs/vault/template
@@ -1,7 +1,7 @@
 # Template file for 'vault'
 pkgname=vault
 version=1.9.2
-revision=1
+revision=2
 build_style=go
 go_import_path="github.com/hashicorp/vault"
 go_build_tags="release"
@@ -26,4 +26,5 @@ esac
 post_install() {
 	vlicense LICENSE
 	vsv vault
+	vconf ${FILESDIR}/vault.conf
 }

From f68a91d7e4ed394766c9a0e5695c8915a7be29dc Mon Sep 17 00:00:00 2001
From: mobinmob <mobinmob@disroot.org>
Date: Thu, 3 Feb 2022 22:08:22 +0200
Subject: [PATCH 2/2] spampd: add log service.

---
 srcpkgs/spampd/files/spampd/log/run | 1 +
 srcpkgs/spampd/files/spampd/run     | 2 +-
 srcpkgs/spampd/template             | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)
 create mode 120000 srcpkgs/spampd/files/spampd/log/run

diff --git a/srcpkgs/spampd/files/spampd/log/run b/srcpkgs/spampd/files/spampd/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/spampd/files/spampd/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/spampd/files/spampd/run b/srcpkgs/spampd/files/spampd/run
index 7c19ace4ea96..8db3b3a3f0c4 100755
--- a/srcpkgs/spampd/files/spampd/run
+++ b/srcpkgs/spampd/files/spampd/run
@@ -1,3 +1,3 @@
 #!/bin/sh
 [ -r conf ] && . ./conf
-exec spampd --nodetach ${OPTS:=--host=127.0.0.1:10025 --relayhost=127.0.0.1:10026 --a --rh --u=_spampd --g=_spampd --maxsize=512}
+exec spampd --nodetach ${OPTS:=--host=127.0.0.1:10025 --relayhost=127.0.0.1:10026 --a --rh --u=_spampd --g=_spampd --maxsize=512} 2>&1
diff --git a/srcpkgs/spampd/template b/srcpkgs/spampd/template
index 4380aae4f8bc..76bd4c99f9d7 100644
--- a/srcpkgs/spampd/template
+++ b/srcpkgs/spampd/template
@@ -1,7 +1,7 @@
 # Template file for 'spampd'
 pkgname=spampd
 version=2.30
-revision=2
+revision=3
 build_style=gnu-makefile
 hostmakedepends="perl"
 depends="perl perl-Net-Server spamassassin"

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

* Re: [PR PATCH] [Updated] [wip] services fixes - enhancements
  2022-02-03 19:50 [PR PATCH] [wip] services fixes - enhancements mobinmob
                   ` (3 preceding siblings ...)
  2022-02-03 20:09 ` [PR PATCH] [Updated] " mobinmob
@ 2022-02-03 20:19 ` mobinmob
  2022-02-03 20:25 ` mobinmob
                   ` (9 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: mobinmob @ 2022-02-03 20:19 UTC (permalink / raw)
  To: ml

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

There is an updated pull request by mobinmob against master on the void-packages repository

https://github.com/mobinmob/void-packages service-fixes
https://github.com/void-linux/void-packages/pull/35384

[wip] services fixes - enhancements
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**
<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please [skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration)
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!-- 
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-service-fixes-35384.patch --]
[-- Type: text/x-diff, Size: 4914 bytes --]

From b81bf990c156ca86b0df2f5bb9e429697863b43f Mon Sep 17 00:00:00 2001
From: mobinmob <mobinmob@disroot.org>
Date: Thu, 3 Feb 2022 21:45:31 +0200
Subject: [PATCH 1/3] vault: fix and enhance service, add sample conf file.

---
 srcpkgs/vault/files/vault.conf    | 6 ++++++
 srcpkgs/vault/files/vault/log/run | 1 +
 srcpkgs/vault/files/vault/run     | 2 +-
 srcpkgs/vault/template            | 3 ++-
 4 files changed, 10 insertions(+), 2 deletions(-)
 create mode 100644 srcpkgs/vault/files/vault.conf
 create mode 120000 srcpkgs/vault/files/vault/log/run

diff --git a/srcpkgs/vault/files/vault.conf b/srcpkgs/vault/files/vault.conf
new file mode 100644
index 000000000000..c2a404c6cfcf
--- /dev/null
+++ b/srcpkgs/vault/files/vault.conf
@@ -0,0 +1,6 @@
+# Please configure vault according to the the documentation.
+# The contents below are the bare minimum to allow the service to run.
+
+storage "file" {
+  path = "/mnt/vault/data"
+}
diff --git a/srcpkgs/vault/files/vault/log/run b/srcpkgs/vault/files/vault/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/vault/files/vault/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/vault/files/vault/run b/srcpkgs/vault/files/vault/run
index 840cc2836921..f578ddbbbd39 100644
--- a/srcpkgs/vault/files/vault/run
+++ b/srcpkgs/vault/files/vault/run
@@ -1,3 +1,3 @@
 #!/bin/sh
 
-exec chpst -u _vault vault server -config=/etc/vault/
+exec chpst -u _vault vault server -config=/etc/vault.conf 2>&1
diff --git a/srcpkgs/vault/template b/srcpkgs/vault/template
index 1ba3566e77c7..ff6064bf94c5 100644
--- a/srcpkgs/vault/template
+++ b/srcpkgs/vault/template
@@ -1,7 +1,7 @@
 # Template file for 'vault'
 pkgname=vault
 version=1.9.2
-revision=1
+revision=2
 build_style=go
 go_import_path="github.com/hashicorp/vault"
 go_build_tags="release"
@@ -26,4 +26,5 @@ esac
 post_install() {
 	vlicense LICENSE
 	vsv vault
+	vconf ${FILESDIR}/vault.conf
 }

From f68a91d7e4ed394766c9a0e5695c8915a7be29dc Mon Sep 17 00:00:00 2001
From: mobinmob <mobinmob@disroot.org>
Date: Thu, 3 Feb 2022 22:08:22 +0200
Subject: [PATCH 2/3] spampd: add log service.

---
 srcpkgs/spampd/files/spampd/log/run | 1 +
 srcpkgs/spampd/files/spampd/run     | 2 +-
 srcpkgs/spampd/template             | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)
 create mode 120000 srcpkgs/spampd/files/spampd/log/run

diff --git a/srcpkgs/spampd/files/spampd/log/run b/srcpkgs/spampd/files/spampd/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/spampd/files/spampd/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/spampd/files/spampd/run b/srcpkgs/spampd/files/spampd/run
index 7c19ace4ea96..8db3b3a3f0c4 100755
--- a/srcpkgs/spampd/files/spampd/run
+++ b/srcpkgs/spampd/files/spampd/run
@@ -1,3 +1,3 @@
 #!/bin/sh
 [ -r conf ] && . ./conf
-exec spampd --nodetach ${OPTS:=--host=127.0.0.1:10025 --relayhost=127.0.0.1:10026 --a --rh --u=_spampd --g=_spampd --maxsize=512}
+exec spampd --nodetach ${OPTS:=--host=127.0.0.1:10025 --relayhost=127.0.0.1:10026 --a --rh --u=_spampd --g=_spampd --maxsize=512} 2>&1
diff --git a/srcpkgs/spampd/template b/srcpkgs/spampd/template
index 4380aae4f8bc..76bd4c99f9d7 100644
--- a/srcpkgs/spampd/template
+++ b/srcpkgs/spampd/template
@@ -1,7 +1,7 @@
 # Template file for 'spampd'
 pkgname=spampd
 version=2.30
-revision=2
+revision=3
 build_style=gnu-makefile
 hostmakedepends="perl"
 depends="perl perl-Net-Server spamassassin"

From 082a429c3a4a7bc3294c86ff759684ce277c56f2 Mon Sep 17 00:00:00 2001
From: mobinmob <mobinmob@disroot.org>
Date: Thu, 3 Feb 2022 22:17:54 +0200
Subject: [PATCH 3/3] etcd: add log service.

---
 srcpkgs/etcd/files/etcd/log/run | 1 +
 srcpkgs/etcd/files/etcd/run     | 2 +-
 srcpkgs/etcd/template           | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)
 create mode 120000 srcpkgs/etcd/files/etcd/log/run

diff --git a/srcpkgs/etcd/files/etcd/log/run b/srcpkgs/etcd/files/etcd/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/etcd/files/etcd/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/etcd/files/etcd/run b/srcpkgs/etcd/files/etcd/run
index 4d3f36562993..38100d14923f 100644
--- a/srcpkgs/etcd/files/etcd/run
+++ b/srcpkgs/etcd/files/etcd/run
@@ -4,4 +4,4 @@ export ETCD_DATA_DIR=/var/lib/etcd
 export ETCD_NAME=etcd
 
 [ -r conf ] && . ./conf
-exec chpst -u etcd:etcd etcd
+exec chpst -u etcd:etcd etcd 2>&1
diff --git a/srcpkgs/etcd/template b/srcpkgs/etcd/template
index b255d53874f7..fbf8e4c4a5cb 100644
--- a/srcpkgs/etcd/template
+++ b/srcpkgs/etcd/template
@@ -1,7 +1,7 @@
 # Template file for 'etcd'
 pkgname=etcd
 version=3.4.4
-revision=2
+revision=3
 build_style=go
 go_import_path="github.com/coreos/etcd"
 go_package="${go_import_path} ${go_import_path}/etcdctl"

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

* Re: [PR PATCH] [Updated] [wip] services fixes - enhancements
  2022-02-03 19:50 [PR PATCH] [wip] services fixes - enhancements mobinmob
                   ` (4 preceding siblings ...)
  2022-02-03 20:19 ` mobinmob
@ 2022-02-03 20:25 ` mobinmob
  2022-02-05  9:41 ` mobinmob
                   ` (8 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: mobinmob @ 2022-02-03 20:25 UTC (permalink / raw)
  To: ml

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

There is an updated pull request by mobinmob against master on the void-packages repository

https://github.com/mobinmob/void-packages service-fixes
https://github.com/void-linux/void-packages/pull/35384

[wip] services fixes - enhancements
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**
<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please [skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration)
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!-- 
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-service-fixes-35384.patch --]
[-- Type: text/x-diff, Size: 5938 bytes --]

From b81bf990c156ca86b0df2f5bb9e429697863b43f Mon Sep 17 00:00:00 2001
From: mobinmob <mobinmob@disroot.org>
Date: Thu, 3 Feb 2022 21:45:31 +0200
Subject: [PATCH 1/4] vault: fix and enhance service, add sample conf file.

---
 srcpkgs/vault/files/vault.conf    | 6 ++++++
 srcpkgs/vault/files/vault/log/run | 1 +
 srcpkgs/vault/files/vault/run     | 2 +-
 srcpkgs/vault/template            | 3 ++-
 4 files changed, 10 insertions(+), 2 deletions(-)
 create mode 100644 srcpkgs/vault/files/vault.conf
 create mode 120000 srcpkgs/vault/files/vault/log/run

diff --git a/srcpkgs/vault/files/vault.conf b/srcpkgs/vault/files/vault.conf
new file mode 100644
index 000000000000..c2a404c6cfcf
--- /dev/null
+++ b/srcpkgs/vault/files/vault.conf
@@ -0,0 +1,6 @@
+# Please configure vault according to the the documentation.
+# The contents below are the bare minimum to allow the service to run.
+
+storage "file" {
+  path = "/mnt/vault/data"
+}
diff --git a/srcpkgs/vault/files/vault/log/run b/srcpkgs/vault/files/vault/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/vault/files/vault/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/vault/files/vault/run b/srcpkgs/vault/files/vault/run
index 840cc2836921..f578ddbbbd39 100644
--- a/srcpkgs/vault/files/vault/run
+++ b/srcpkgs/vault/files/vault/run
@@ -1,3 +1,3 @@
 #!/bin/sh
 
-exec chpst -u _vault vault server -config=/etc/vault/
+exec chpst -u _vault vault server -config=/etc/vault.conf 2>&1
diff --git a/srcpkgs/vault/template b/srcpkgs/vault/template
index 1ba3566e77c7..ff6064bf94c5 100644
--- a/srcpkgs/vault/template
+++ b/srcpkgs/vault/template
@@ -1,7 +1,7 @@
 # Template file for 'vault'
 pkgname=vault
 version=1.9.2
-revision=1
+revision=2
 build_style=go
 go_import_path="github.com/hashicorp/vault"
 go_build_tags="release"
@@ -26,4 +26,5 @@ esac
 post_install() {
 	vlicense LICENSE
 	vsv vault
+	vconf ${FILESDIR}/vault.conf
 }

From f68a91d7e4ed394766c9a0e5695c8915a7be29dc Mon Sep 17 00:00:00 2001
From: mobinmob <mobinmob@disroot.org>
Date: Thu, 3 Feb 2022 22:08:22 +0200
Subject: [PATCH 2/4] spampd: add log service.

---
 srcpkgs/spampd/files/spampd/log/run | 1 +
 srcpkgs/spampd/files/spampd/run     | 2 +-
 srcpkgs/spampd/template             | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)
 create mode 120000 srcpkgs/spampd/files/spampd/log/run

diff --git a/srcpkgs/spampd/files/spampd/log/run b/srcpkgs/spampd/files/spampd/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/spampd/files/spampd/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/spampd/files/spampd/run b/srcpkgs/spampd/files/spampd/run
index 7c19ace4ea96..8db3b3a3f0c4 100755
--- a/srcpkgs/spampd/files/spampd/run
+++ b/srcpkgs/spampd/files/spampd/run
@@ -1,3 +1,3 @@
 #!/bin/sh
 [ -r conf ] && . ./conf
-exec spampd --nodetach ${OPTS:=--host=127.0.0.1:10025 --relayhost=127.0.0.1:10026 --a --rh --u=_spampd --g=_spampd --maxsize=512}
+exec spampd --nodetach ${OPTS:=--host=127.0.0.1:10025 --relayhost=127.0.0.1:10026 --a --rh --u=_spampd --g=_spampd --maxsize=512} 2>&1
diff --git a/srcpkgs/spampd/template b/srcpkgs/spampd/template
index 4380aae4f8bc..76bd4c99f9d7 100644
--- a/srcpkgs/spampd/template
+++ b/srcpkgs/spampd/template
@@ -1,7 +1,7 @@
 # Template file for 'spampd'
 pkgname=spampd
 version=2.30
-revision=2
+revision=3
 build_style=gnu-makefile
 hostmakedepends="perl"
 depends="perl perl-Net-Server spamassassin"

From 082a429c3a4a7bc3294c86ff759684ce277c56f2 Mon Sep 17 00:00:00 2001
From: mobinmob <mobinmob@disroot.org>
Date: Thu, 3 Feb 2022 22:17:54 +0200
Subject: [PATCH 3/4] etcd: add log service.

---
 srcpkgs/etcd/files/etcd/log/run | 1 +
 srcpkgs/etcd/files/etcd/run     | 2 +-
 srcpkgs/etcd/template           | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)
 create mode 120000 srcpkgs/etcd/files/etcd/log/run

diff --git a/srcpkgs/etcd/files/etcd/log/run b/srcpkgs/etcd/files/etcd/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/etcd/files/etcd/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/etcd/files/etcd/run b/srcpkgs/etcd/files/etcd/run
index 4d3f36562993..38100d14923f 100644
--- a/srcpkgs/etcd/files/etcd/run
+++ b/srcpkgs/etcd/files/etcd/run
@@ -4,4 +4,4 @@ export ETCD_DATA_DIR=/var/lib/etcd
 export ETCD_NAME=etcd
 
 [ -r conf ] && . ./conf
-exec chpst -u etcd:etcd etcd
+exec chpst -u etcd:etcd etcd 2>&1
diff --git a/srcpkgs/etcd/template b/srcpkgs/etcd/template
index b255d53874f7..fbf8e4c4a5cb 100644
--- a/srcpkgs/etcd/template
+++ b/srcpkgs/etcd/template
@@ -1,7 +1,7 @@
 # Template file for 'etcd'
 pkgname=etcd
 version=3.4.4
-revision=2
+revision=3
 build_style=go
 go_import_path="github.com/coreos/etcd"
 go_package="${go_import_path} ${go_import_path}/etcdctl"

From f7bac14c9bc95611acaeb5151d4d003f1c6daa0e Mon Sep 17 00:00:00 2001
From: mobinmob <mobinmob@disroot.org>
Date: Thu, 3 Feb 2022 22:24:35 +0200
Subject: [PATCH 4/4] cntlm: add log service.

---
 srcpkgs/cntlm/files/cntlm/log/run | 1 +
 srcpkgs/cntlm/template            | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
 create mode 120000 srcpkgs/cntlm/files/cntlm/log/run

diff --git a/srcpkgs/cntlm/files/cntlm/log/run b/srcpkgs/cntlm/files/cntlm/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/cntlm/files/cntlm/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/cntlm/template b/srcpkgs/cntlm/template
index 50da46505715..351bd94a07ab 100644
--- a/srcpkgs/cntlm/template
+++ b/srcpkgs/cntlm/template
@@ -1,7 +1,7 @@
 # Template file for 'cntlm'
 pkgname=cntlm
 version=0.92.3
-revision=6
+revision=7
 build_style=gnu-configure
 hostmakedepends="which"
 short_desc="NTLM / NTLM Session Response / NTLMv2 authenticating HTTP proxy"

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

* Re: [PR PATCH] [Updated] [wip] services fixes - enhancements
  2022-02-03 19:50 [PR PATCH] [wip] services fixes - enhancements mobinmob
                   ` (5 preceding siblings ...)
  2022-02-03 20:25 ` mobinmob
@ 2022-02-05  9:41 ` mobinmob
  2022-02-05 10:04 ` mobinmob
                   ` (7 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: mobinmob @ 2022-02-05  9:41 UTC (permalink / raw)
  To: ml

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

There is an updated pull request by mobinmob against master on the void-packages repository

https://github.com/mobinmob/void-packages service-fixes
https://github.com/void-linux/void-packages/pull/35384

[wip] services fixes - enhancements
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**
<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please [skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration)
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!-- 
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-service-fixes-35384.patch --]
[-- Type: text/x-diff, Size: 7066 bytes --]

From b81bf990c156ca86b0df2f5bb9e429697863b43f Mon Sep 17 00:00:00 2001
From: mobinmob <mobinmob@disroot.org>
Date: Thu, 3 Feb 2022 21:45:31 +0200
Subject: [PATCH 1/5] vault: fix and enhance service, add sample conf file.

---
 srcpkgs/vault/files/vault.conf    | 6 ++++++
 srcpkgs/vault/files/vault/log/run | 1 +
 srcpkgs/vault/files/vault/run     | 2 +-
 srcpkgs/vault/template            | 3 ++-
 4 files changed, 10 insertions(+), 2 deletions(-)
 create mode 100644 srcpkgs/vault/files/vault.conf
 create mode 120000 srcpkgs/vault/files/vault/log/run

diff --git a/srcpkgs/vault/files/vault.conf b/srcpkgs/vault/files/vault.conf
new file mode 100644
index 000000000000..c2a404c6cfcf
--- /dev/null
+++ b/srcpkgs/vault/files/vault.conf
@@ -0,0 +1,6 @@
+# Please configure vault according to the the documentation.
+# The contents below are the bare minimum to allow the service to run.
+
+storage "file" {
+  path = "/mnt/vault/data"
+}
diff --git a/srcpkgs/vault/files/vault/log/run b/srcpkgs/vault/files/vault/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/vault/files/vault/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/vault/files/vault/run b/srcpkgs/vault/files/vault/run
index 840cc2836921..f578ddbbbd39 100644
--- a/srcpkgs/vault/files/vault/run
+++ b/srcpkgs/vault/files/vault/run
@@ -1,3 +1,3 @@
 #!/bin/sh
 
-exec chpst -u _vault vault server -config=/etc/vault/
+exec chpst -u _vault vault server -config=/etc/vault.conf 2>&1
diff --git a/srcpkgs/vault/template b/srcpkgs/vault/template
index 1ba3566e77c7..ff6064bf94c5 100644
--- a/srcpkgs/vault/template
+++ b/srcpkgs/vault/template
@@ -1,7 +1,7 @@
 # Template file for 'vault'
 pkgname=vault
 version=1.9.2
-revision=1
+revision=2
 build_style=go
 go_import_path="github.com/hashicorp/vault"
 go_build_tags="release"
@@ -26,4 +26,5 @@ esac
 post_install() {
 	vlicense LICENSE
 	vsv vault
+	vconf ${FILESDIR}/vault.conf
 }

From f68a91d7e4ed394766c9a0e5695c8915a7be29dc Mon Sep 17 00:00:00 2001
From: mobinmob <mobinmob@disroot.org>
Date: Thu, 3 Feb 2022 22:08:22 +0200
Subject: [PATCH 2/5] spampd: add log service.

---
 srcpkgs/spampd/files/spampd/log/run | 1 +
 srcpkgs/spampd/files/spampd/run     | 2 +-
 srcpkgs/spampd/template             | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)
 create mode 120000 srcpkgs/spampd/files/spampd/log/run

diff --git a/srcpkgs/spampd/files/spampd/log/run b/srcpkgs/spampd/files/spampd/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/spampd/files/spampd/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/spampd/files/spampd/run b/srcpkgs/spampd/files/spampd/run
index 7c19ace4ea96..8db3b3a3f0c4 100755
--- a/srcpkgs/spampd/files/spampd/run
+++ b/srcpkgs/spampd/files/spampd/run
@@ -1,3 +1,3 @@
 #!/bin/sh
 [ -r conf ] && . ./conf
-exec spampd --nodetach ${OPTS:=--host=127.0.0.1:10025 --relayhost=127.0.0.1:10026 --a --rh --u=_spampd --g=_spampd --maxsize=512}
+exec spampd --nodetach ${OPTS:=--host=127.0.0.1:10025 --relayhost=127.0.0.1:10026 --a --rh --u=_spampd --g=_spampd --maxsize=512} 2>&1
diff --git a/srcpkgs/spampd/template b/srcpkgs/spampd/template
index 4380aae4f8bc..76bd4c99f9d7 100644
--- a/srcpkgs/spampd/template
+++ b/srcpkgs/spampd/template
@@ -1,7 +1,7 @@
 # Template file for 'spampd'
 pkgname=spampd
 version=2.30
-revision=2
+revision=3
 build_style=gnu-makefile
 hostmakedepends="perl"
 depends="perl perl-Net-Server spamassassin"

From 082a429c3a4a7bc3294c86ff759684ce277c56f2 Mon Sep 17 00:00:00 2001
From: mobinmob <mobinmob@disroot.org>
Date: Thu, 3 Feb 2022 22:17:54 +0200
Subject: [PATCH 3/5] etcd: add log service.

---
 srcpkgs/etcd/files/etcd/log/run | 1 +
 srcpkgs/etcd/files/etcd/run     | 2 +-
 srcpkgs/etcd/template           | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)
 create mode 120000 srcpkgs/etcd/files/etcd/log/run

diff --git a/srcpkgs/etcd/files/etcd/log/run b/srcpkgs/etcd/files/etcd/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/etcd/files/etcd/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/etcd/files/etcd/run b/srcpkgs/etcd/files/etcd/run
index 4d3f36562993..38100d14923f 100644
--- a/srcpkgs/etcd/files/etcd/run
+++ b/srcpkgs/etcd/files/etcd/run
@@ -4,4 +4,4 @@ export ETCD_DATA_DIR=/var/lib/etcd
 export ETCD_NAME=etcd
 
 [ -r conf ] && . ./conf
-exec chpst -u etcd:etcd etcd
+exec chpst -u etcd:etcd etcd 2>&1
diff --git a/srcpkgs/etcd/template b/srcpkgs/etcd/template
index b255d53874f7..fbf8e4c4a5cb 100644
--- a/srcpkgs/etcd/template
+++ b/srcpkgs/etcd/template
@@ -1,7 +1,7 @@
 # Template file for 'etcd'
 pkgname=etcd
 version=3.4.4
-revision=2
+revision=3
 build_style=go
 go_import_path="github.com/coreos/etcd"
 go_package="${go_import_path} ${go_import_path}/etcdctl"

From f7bac14c9bc95611acaeb5151d4d003f1c6daa0e Mon Sep 17 00:00:00 2001
From: mobinmob <mobinmob@disroot.org>
Date: Thu, 3 Feb 2022 22:24:35 +0200
Subject: [PATCH 4/5] cntlm: add log service.

---
 srcpkgs/cntlm/files/cntlm/log/run | 1 +
 srcpkgs/cntlm/template            | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
 create mode 120000 srcpkgs/cntlm/files/cntlm/log/run

diff --git a/srcpkgs/cntlm/files/cntlm/log/run b/srcpkgs/cntlm/files/cntlm/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/cntlm/files/cntlm/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/cntlm/template b/srcpkgs/cntlm/template
index 50da46505715..351bd94a07ab 100644
--- a/srcpkgs/cntlm/template
+++ b/srcpkgs/cntlm/template
@@ -1,7 +1,7 @@
 # Template file for 'cntlm'
 pkgname=cntlm
 version=0.92.3
-revision=6
+revision=7
 build_style=gnu-configure
 hostmakedepends="which"
 short_desc="NTLM / NTLM Session Response / NTLMv2 authenticating HTTP proxy"

From 01fffc0c1551d73fd73b7f9ab8ecdcd1911a1beb Mon Sep 17 00:00:00 2001
From: mobinmob <mobinmob@disroot.org>
Date: Sat, 5 Feb 2022 11:40:06 +0200
Subject: [PATCH 5/5] caddy: redirect stderr to the log service.

---
 srcpkgs/caddy/files/caddy/run | 2 +-
 srcpkgs/caddy/template        | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/caddy/files/caddy/run b/srcpkgs/caddy/files/caddy/run
index c8670fa67b69..36559e4af079 100644
--- a/srcpkgs/caddy/files/caddy/run
+++ b/srcpkgs/caddy/files/caddy/run
@@ -5,4 +5,4 @@
 export HOME=/var/lib/caddy
 ulimit -n ${MAX_OPEN_FILES:-8192}
 
-exec chpst -u caddy caddy run --config ${CONFFILE:-/etc/caddy/Caddyfile}
+exec chpst -u caddy caddy run --config ${CONFFILE:-/etc/caddy/Caddyfile} 2>&1
diff --git a/srcpkgs/caddy/template b/srcpkgs/caddy/template
index 762a36749b46..90057a7f8990 100644
--- a/srcpkgs/caddy/template
+++ b/srcpkgs/caddy/template
@@ -1,7 +1,7 @@
 # Template file for 'caddy'
 pkgname=caddy
 version=2.4.6
-revision=2
+revision=3
 build_style=go
 go_import_path=github.com/caddyserver/caddy/v2
 go_package="${go_import_path}/cmd/caddy"

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

* Re: [PR PATCH] [Updated] [wip] services fixes - enhancements
  2022-02-03 19:50 [PR PATCH] [wip] services fixes - enhancements mobinmob
                   ` (6 preceding siblings ...)
  2022-02-05  9:41 ` mobinmob
@ 2022-02-05 10:04 ` mobinmob
  2022-02-05 10:56 ` mobinmob
                   ` (6 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: mobinmob @ 2022-02-05 10:04 UTC (permalink / raw)
  To: ml

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

There is an updated pull request by mobinmob against master on the void-packages repository

https://github.com/mobinmob/void-packages service-fixes
https://github.com/void-linux/void-packages/pull/35384

[wip] services fixes - enhancements
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**
<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please [skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration)
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!-- 
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-service-fixes-35384.patch --]
[-- Type: text/x-diff, Size: 8732 bytes --]

From b81bf990c156ca86b0df2f5bb9e429697863b43f Mon Sep 17 00:00:00 2001
From: mobinmob <mobinmob@disroot.org>
Date: Thu, 3 Feb 2022 21:45:31 +0200
Subject: [PATCH 1/6] vault: fix and enhance service, add sample conf file.

---
 srcpkgs/vault/files/vault.conf    | 6 ++++++
 srcpkgs/vault/files/vault/log/run | 1 +
 srcpkgs/vault/files/vault/run     | 2 +-
 srcpkgs/vault/template            | 3 ++-
 4 files changed, 10 insertions(+), 2 deletions(-)
 create mode 100644 srcpkgs/vault/files/vault.conf
 create mode 120000 srcpkgs/vault/files/vault/log/run

diff --git a/srcpkgs/vault/files/vault.conf b/srcpkgs/vault/files/vault.conf
new file mode 100644
index 000000000000..c2a404c6cfcf
--- /dev/null
+++ b/srcpkgs/vault/files/vault.conf
@@ -0,0 +1,6 @@
+# Please configure vault according to the the documentation.
+# The contents below are the bare minimum to allow the service to run.
+
+storage "file" {
+  path = "/mnt/vault/data"
+}
diff --git a/srcpkgs/vault/files/vault/log/run b/srcpkgs/vault/files/vault/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/vault/files/vault/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/vault/files/vault/run b/srcpkgs/vault/files/vault/run
index 840cc2836921..f578ddbbbd39 100644
--- a/srcpkgs/vault/files/vault/run
+++ b/srcpkgs/vault/files/vault/run
@@ -1,3 +1,3 @@
 #!/bin/sh
 
-exec chpst -u _vault vault server -config=/etc/vault/
+exec chpst -u _vault vault server -config=/etc/vault.conf 2>&1
diff --git a/srcpkgs/vault/template b/srcpkgs/vault/template
index 1ba3566e77c7..ff6064bf94c5 100644
--- a/srcpkgs/vault/template
+++ b/srcpkgs/vault/template
@@ -1,7 +1,7 @@
 # Template file for 'vault'
 pkgname=vault
 version=1.9.2
-revision=1
+revision=2
 build_style=go
 go_import_path="github.com/hashicorp/vault"
 go_build_tags="release"
@@ -26,4 +26,5 @@ esac
 post_install() {
 	vlicense LICENSE
 	vsv vault
+	vconf ${FILESDIR}/vault.conf
 }

From f68a91d7e4ed394766c9a0e5695c8915a7be29dc Mon Sep 17 00:00:00 2001
From: mobinmob <mobinmob@disroot.org>
Date: Thu, 3 Feb 2022 22:08:22 +0200
Subject: [PATCH 2/6] spampd: add log service.

---
 srcpkgs/spampd/files/spampd/log/run | 1 +
 srcpkgs/spampd/files/spampd/run     | 2 +-
 srcpkgs/spampd/template             | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)
 create mode 120000 srcpkgs/spampd/files/spampd/log/run

diff --git a/srcpkgs/spampd/files/spampd/log/run b/srcpkgs/spampd/files/spampd/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/spampd/files/spampd/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/spampd/files/spampd/run b/srcpkgs/spampd/files/spampd/run
index 7c19ace4ea96..8db3b3a3f0c4 100755
--- a/srcpkgs/spampd/files/spampd/run
+++ b/srcpkgs/spampd/files/spampd/run
@@ -1,3 +1,3 @@
 #!/bin/sh
 [ -r conf ] && . ./conf
-exec spampd --nodetach ${OPTS:=--host=127.0.0.1:10025 --relayhost=127.0.0.1:10026 --a --rh --u=_spampd --g=_spampd --maxsize=512}
+exec spampd --nodetach ${OPTS:=--host=127.0.0.1:10025 --relayhost=127.0.0.1:10026 --a --rh --u=_spampd --g=_spampd --maxsize=512} 2>&1
diff --git a/srcpkgs/spampd/template b/srcpkgs/spampd/template
index 4380aae4f8bc..76bd4c99f9d7 100644
--- a/srcpkgs/spampd/template
+++ b/srcpkgs/spampd/template
@@ -1,7 +1,7 @@
 # Template file for 'spampd'
 pkgname=spampd
 version=2.30
-revision=2
+revision=3
 build_style=gnu-makefile
 hostmakedepends="perl"
 depends="perl perl-Net-Server spamassassin"

From 082a429c3a4a7bc3294c86ff759684ce277c56f2 Mon Sep 17 00:00:00 2001
From: mobinmob <mobinmob@disroot.org>
Date: Thu, 3 Feb 2022 22:17:54 +0200
Subject: [PATCH 3/6] etcd: add log service.

---
 srcpkgs/etcd/files/etcd/log/run | 1 +
 srcpkgs/etcd/files/etcd/run     | 2 +-
 srcpkgs/etcd/template           | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)
 create mode 120000 srcpkgs/etcd/files/etcd/log/run

diff --git a/srcpkgs/etcd/files/etcd/log/run b/srcpkgs/etcd/files/etcd/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/etcd/files/etcd/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/etcd/files/etcd/run b/srcpkgs/etcd/files/etcd/run
index 4d3f36562993..38100d14923f 100644
--- a/srcpkgs/etcd/files/etcd/run
+++ b/srcpkgs/etcd/files/etcd/run
@@ -4,4 +4,4 @@ export ETCD_DATA_DIR=/var/lib/etcd
 export ETCD_NAME=etcd
 
 [ -r conf ] && . ./conf
-exec chpst -u etcd:etcd etcd
+exec chpst -u etcd:etcd etcd 2>&1
diff --git a/srcpkgs/etcd/template b/srcpkgs/etcd/template
index b255d53874f7..fbf8e4c4a5cb 100644
--- a/srcpkgs/etcd/template
+++ b/srcpkgs/etcd/template
@@ -1,7 +1,7 @@
 # Template file for 'etcd'
 pkgname=etcd
 version=3.4.4
-revision=2
+revision=3
 build_style=go
 go_import_path="github.com/coreos/etcd"
 go_package="${go_import_path} ${go_import_path}/etcdctl"

From f7bac14c9bc95611acaeb5151d4d003f1c6daa0e Mon Sep 17 00:00:00 2001
From: mobinmob <mobinmob@disroot.org>
Date: Thu, 3 Feb 2022 22:24:35 +0200
Subject: [PATCH 4/6] cntlm: add log service.

---
 srcpkgs/cntlm/files/cntlm/log/run | 1 +
 srcpkgs/cntlm/template            | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
 create mode 120000 srcpkgs/cntlm/files/cntlm/log/run

diff --git a/srcpkgs/cntlm/files/cntlm/log/run b/srcpkgs/cntlm/files/cntlm/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/cntlm/files/cntlm/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/cntlm/template b/srcpkgs/cntlm/template
index 50da46505715..351bd94a07ab 100644
--- a/srcpkgs/cntlm/template
+++ b/srcpkgs/cntlm/template
@@ -1,7 +1,7 @@
 # Template file for 'cntlm'
 pkgname=cntlm
 version=0.92.3
-revision=6
+revision=7
 build_style=gnu-configure
 hostmakedepends="which"
 short_desc="NTLM / NTLM Session Response / NTLMv2 authenticating HTTP proxy"

From 01fffc0c1551d73fd73b7f9ab8ecdcd1911a1beb Mon Sep 17 00:00:00 2001
From: mobinmob <mobinmob@disroot.org>
Date: Sat, 5 Feb 2022 11:40:06 +0200
Subject: [PATCH 5/6] caddy: redirect stderr to the log service.

---
 srcpkgs/caddy/files/caddy/run | 2 +-
 srcpkgs/caddy/template        | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/caddy/files/caddy/run b/srcpkgs/caddy/files/caddy/run
index c8670fa67b69..36559e4af079 100644
--- a/srcpkgs/caddy/files/caddy/run
+++ b/srcpkgs/caddy/files/caddy/run
@@ -5,4 +5,4 @@
 export HOME=/var/lib/caddy
 ulimit -n ${MAX_OPEN_FILES:-8192}
 
-exec chpst -u caddy caddy run --config ${CONFFILE:-/etc/caddy/Caddyfile}
+exec chpst -u caddy caddy run --config ${CONFFILE:-/etc/caddy/Caddyfile} 2>&1
diff --git a/srcpkgs/caddy/template b/srcpkgs/caddy/template
index 762a36749b46..90057a7f8990 100644
--- a/srcpkgs/caddy/template
+++ b/srcpkgs/caddy/template
@@ -1,7 +1,7 @@
 # Template file for 'caddy'
 pkgname=caddy
 version=2.4.6
-revision=2
+revision=3
 build_style=go
 go_import_path=github.com/caddyserver/caddy/v2
 go_package="${go_import_path}/cmd/caddy"

From a5101d7ee5ac9c44327e2ea2bdc8fa67123ccc01 Mon Sep 17 00:00:00 2001
From: mobinmob <mobinmob@disroot.org>
Date: Sat, 5 Feb 2022 11:54:47 +0200
Subject: [PATCH 6/6] gitea: add log service.

---
 srcpkgs/gitea/files/gitea/log/run | 1 +
 srcpkgs/gitea/files/gitea/run     | 2 +-
 srcpkgs/gitea/template            | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)
 create mode 120000 srcpkgs/gitea/files/gitea/log/run

diff --git a/srcpkgs/gitea/files/gitea/log/run b/srcpkgs/gitea/files/gitea/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/gitea/files/gitea/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/gitea/files/gitea/run b/srcpkgs/gitea/files/gitea/run
index 591e977e729f..a8b6ff44cc3a 100755
--- a/srcpkgs/gitea/files/gitea/run
+++ b/srcpkgs/gitea/files/gitea/run
@@ -6,4 +6,4 @@ cd /var/lib/gitea
 # The USER variable is needed here because gitea doesn't actually
 # check what user its running as, it instead grabs the USER variable
 # from the environment.  HOME is set for the same reasons.
-USER=_gitea HOME=/var/lib/gitea GITEA_WORK_DIR=$HOME exec chpst -u _gitea:_gitea gitea web --config /etc/gitea.conf
+USER=_gitea HOME=/var/lib/gitea GITEA_WORK_DIR=$HOME exec chpst -u _gitea:_gitea gitea web --config /etc/gitea.conf 2>&1 
diff --git a/srcpkgs/gitea/template b/srcpkgs/gitea/template
index 2d998594cc15..d87acc950ce7 100644
--- a/srcpkgs/gitea/template
+++ b/srcpkgs/gitea/template
@@ -1,7 +1,7 @@
 # Template file for 'gitea'
 pkgname=gitea
 version=1.15.8
-revision=1
+revision=2
 create_wrksrc=yes
 build_style=go
 go_import_path=code.gitea.io/gitea

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

* Re: [PR PATCH] [Updated] [wip] services fixes - enhancements
  2022-02-03 19:50 [PR PATCH] [wip] services fixes - enhancements mobinmob
                   ` (7 preceding siblings ...)
  2022-02-05 10:04 ` mobinmob
@ 2022-02-05 10:56 ` mobinmob
  2022-02-05 11:34 ` mobinmob
                   ` (5 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: mobinmob @ 2022-02-05 10:56 UTC (permalink / raw)
  To: ml

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

There is an updated pull request by mobinmob against master on the void-packages repository

https://github.com/mobinmob/void-packages service-fixes
https://github.com/void-linux/void-packages/pull/35384

[wip] services fixes - enhancements
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**
<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please [skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration)
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!-- 
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-service-fixes-35384.patch --]
[-- Type: text/x-diff, Size: 9605 bytes --]

From b81bf990c156ca86b0df2f5bb9e429697863b43f Mon Sep 17 00:00:00 2001
From: mobinmob <mobinmob@disroot.org>
Date: Thu, 3 Feb 2022 21:45:31 +0200
Subject: [PATCH 1/7] vault: fix and enhance service, add sample conf file.

---
 srcpkgs/vault/files/vault.conf    | 6 ++++++
 srcpkgs/vault/files/vault/log/run | 1 +
 srcpkgs/vault/files/vault/run     | 2 +-
 srcpkgs/vault/template            | 3 ++-
 4 files changed, 10 insertions(+), 2 deletions(-)
 create mode 100644 srcpkgs/vault/files/vault.conf
 create mode 120000 srcpkgs/vault/files/vault/log/run

diff --git a/srcpkgs/vault/files/vault.conf b/srcpkgs/vault/files/vault.conf
new file mode 100644
index 000000000000..c2a404c6cfcf
--- /dev/null
+++ b/srcpkgs/vault/files/vault.conf
@@ -0,0 +1,6 @@
+# Please configure vault according to the the documentation.
+# The contents below are the bare minimum to allow the service to run.
+
+storage "file" {
+  path = "/mnt/vault/data"
+}
diff --git a/srcpkgs/vault/files/vault/log/run b/srcpkgs/vault/files/vault/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/vault/files/vault/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/vault/files/vault/run b/srcpkgs/vault/files/vault/run
index 840cc2836921..f578ddbbbd39 100644
--- a/srcpkgs/vault/files/vault/run
+++ b/srcpkgs/vault/files/vault/run
@@ -1,3 +1,3 @@
 #!/bin/sh
 
-exec chpst -u _vault vault server -config=/etc/vault/
+exec chpst -u _vault vault server -config=/etc/vault.conf 2>&1
diff --git a/srcpkgs/vault/template b/srcpkgs/vault/template
index 1ba3566e77c7..ff6064bf94c5 100644
--- a/srcpkgs/vault/template
+++ b/srcpkgs/vault/template
@@ -1,7 +1,7 @@
 # Template file for 'vault'
 pkgname=vault
 version=1.9.2
-revision=1
+revision=2
 build_style=go
 go_import_path="github.com/hashicorp/vault"
 go_build_tags="release"
@@ -26,4 +26,5 @@ esac
 post_install() {
 	vlicense LICENSE
 	vsv vault
+	vconf ${FILESDIR}/vault.conf
 }

From f68a91d7e4ed394766c9a0e5695c8915a7be29dc Mon Sep 17 00:00:00 2001
From: mobinmob <mobinmob@disroot.org>
Date: Thu, 3 Feb 2022 22:08:22 +0200
Subject: [PATCH 2/7] spampd: add log service.

---
 srcpkgs/spampd/files/spampd/log/run | 1 +
 srcpkgs/spampd/files/spampd/run     | 2 +-
 srcpkgs/spampd/template             | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)
 create mode 120000 srcpkgs/spampd/files/spampd/log/run

diff --git a/srcpkgs/spampd/files/spampd/log/run b/srcpkgs/spampd/files/spampd/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/spampd/files/spampd/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/spampd/files/spampd/run b/srcpkgs/spampd/files/spampd/run
index 7c19ace4ea96..8db3b3a3f0c4 100755
--- a/srcpkgs/spampd/files/spampd/run
+++ b/srcpkgs/spampd/files/spampd/run
@@ -1,3 +1,3 @@
 #!/bin/sh
 [ -r conf ] && . ./conf
-exec spampd --nodetach ${OPTS:=--host=127.0.0.1:10025 --relayhost=127.0.0.1:10026 --a --rh --u=_spampd --g=_spampd --maxsize=512}
+exec spampd --nodetach ${OPTS:=--host=127.0.0.1:10025 --relayhost=127.0.0.1:10026 --a --rh --u=_spampd --g=_spampd --maxsize=512} 2>&1
diff --git a/srcpkgs/spampd/template b/srcpkgs/spampd/template
index 4380aae4f8bc..76bd4c99f9d7 100644
--- a/srcpkgs/spampd/template
+++ b/srcpkgs/spampd/template
@@ -1,7 +1,7 @@
 # Template file for 'spampd'
 pkgname=spampd
 version=2.30
-revision=2
+revision=3
 build_style=gnu-makefile
 hostmakedepends="perl"
 depends="perl perl-Net-Server spamassassin"

From 082a429c3a4a7bc3294c86ff759684ce277c56f2 Mon Sep 17 00:00:00 2001
From: mobinmob <mobinmob@disroot.org>
Date: Thu, 3 Feb 2022 22:17:54 +0200
Subject: [PATCH 3/7] etcd: add log service.

---
 srcpkgs/etcd/files/etcd/log/run | 1 +
 srcpkgs/etcd/files/etcd/run     | 2 +-
 srcpkgs/etcd/template           | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)
 create mode 120000 srcpkgs/etcd/files/etcd/log/run

diff --git a/srcpkgs/etcd/files/etcd/log/run b/srcpkgs/etcd/files/etcd/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/etcd/files/etcd/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/etcd/files/etcd/run b/srcpkgs/etcd/files/etcd/run
index 4d3f36562993..38100d14923f 100644
--- a/srcpkgs/etcd/files/etcd/run
+++ b/srcpkgs/etcd/files/etcd/run
@@ -4,4 +4,4 @@ export ETCD_DATA_DIR=/var/lib/etcd
 export ETCD_NAME=etcd
 
 [ -r conf ] && . ./conf
-exec chpst -u etcd:etcd etcd
+exec chpst -u etcd:etcd etcd 2>&1
diff --git a/srcpkgs/etcd/template b/srcpkgs/etcd/template
index b255d53874f7..fbf8e4c4a5cb 100644
--- a/srcpkgs/etcd/template
+++ b/srcpkgs/etcd/template
@@ -1,7 +1,7 @@
 # Template file for 'etcd'
 pkgname=etcd
 version=3.4.4
-revision=2
+revision=3
 build_style=go
 go_import_path="github.com/coreos/etcd"
 go_package="${go_import_path} ${go_import_path}/etcdctl"

From f7bac14c9bc95611acaeb5151d4d003f1c6daa0e Mon Sep 17 00:00:00 2001
From: mobinmob <mobinmob@disroot.org>
Date: Thu, 3 Feb 2022 22:24:35 +0200
Subject: [PATCH 4/7] cntlm: add log service.

---
 srcpkgs/cntlm/files/cntlm/log/run | 1 +
 srcpkgs/cntlm/template            | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
 create mode 120000 srcpkgs/cntlm/files/cntlm/log/run

diff --git a/srcpkgs/cntlm/files/cntlm/log/run b/srcpkgs/cntlm/files/cntlm/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/cntlm/files/cntlm/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/cntlm/template b/srcpkgs/cntlm/template
index 50da46505715..351bd94a07ab 100644
--- a/srcpkgs/cntlm/template
+++ b/srcpkgs/cntlm/template
@@ -1,7 +1,7 @@
 # Template file for 'cntlm'
 pkgname=cntlm
 version=0.92.3
-revision=6
+revision=7
 build_style=gnu-configure
 hostmakedepends="which"
 short_desc="NTLM / NTLM Session Response / NTLMv2 authenticating HTTP proxy"

From 01fffc0c1551d73fd73b7f9ab8ecdcd1911a1beb Mon Sep 17 00:00:00 2001
From: mobinmob <mobinmob@disroot.org>
Date: Sat, 5 Feb 2022 11:40:06 +0200
Subject: [PATCH 5/7] caddy: redirect stderr to the log service.

---
 srcpkgs/caddy/files/caddy/run | 2 +-
 srcpkgs/caddy/template        | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/caddy/files/caddy/run b/srcpkgs/caddy/files/caddy/run
index c8670fa67b69..36559e4af079 100644
--- a/srcpkgs/caddy/files/caddy/run
+++ b/srcpkgs/caddy/files/caddy/run
@@ -5,4 +5,4 @@
 export HOME=/var/lib/caddy
 ulimit -n ${MAX_OPEN_FILES:-8192}
 
-exec chpst -u caddy caddy run --config ${CONFFILE:-/etc/caddy/Caddyfile}
+exec chpst -u caddy caddy run --config ${CONFFILE:-/etc/caddy/Caddyfile} 2>&1
diff --git a/srcpkgs/caddy/template b/srcpkgs/caddy/template
index 762a36749b46..90057a7f8990 100644
--- a/srcpkgs/caddy/template
+++ b/srcpkgs/caddy/template
@@ -1,7 +1,7 @@
 # Template file for 'caddy'
 pkgname=caddy
 version=2.4.6
-revision=2
+revision=3
 build_style=go
 go_import_path=github.com/caddyserver/caddy/v2
 go_package="${go_import_path}/cmd/caddy"

From a5101d7ee5ac9c44327e2ea2bdc8fa67123ccc01 Mon Sep 17 00:00:00 2001
From: mobinmob <mobinmob@disroot.org>
Date: Sat, 5 Feb 2022 11:54:47 +0200
Subject: [PATCH 6/7] gitea: add log service.

---
 srcpkgs/gitea/files/gitea/log/run | 1 +
 srcpkgs/gitea/files/gitea/run     | 2 +-
 srcpkgs/gitea/template            | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)
 create mode 120000 srcpkgs/gitea/files/gitea/log/run

diff --git a/srcpkgs/gitea/files/gitea/log/run b/srcpkgs/gitea/files/gitea/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/gitea/files/gitea/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/gitea/files/gitea/run b/srcpkgs/gitea/files/gitea/run
index 591e977e729f..a8b6ff44cc3a 100755
--- a/srcpkgs/gitea/files/gitea/run
+++ b/srcpkgs/gitea/files/gitea/run
@@ -6,4 +6,4 @@ cd /var/lib/gitea
 # The USER variable is needed here because gitea doesn't actually
 # check what user its running as, it instead grabs the USER variable
 # from the environment.  HOME is set for the same reasons.
-USER=_gitea HOME=/var/lib/gitea GITEA_WORK_DIR=$HOME exec chpst -u _gitea:_gitea gitea web --config /etc/gitea.conf
+USER=_gitea HOME=/var/lib/gitea GITEA_WORK_DIR=$HOME exec chpst -u _gitea:_gitea gitea web --config /etc/gitea.conf 2>&1 
diff --git a/srcpkgs/gitea/template b/srcpkgs/gitea/template
index 2d998594cc15..d87acc950ce7 100644
--- a/srcpkgs/gitea/template
+++ b/srcpkgs/gitea/template
@@ -1,7 +1,7 @@
 # Template file for 'gitea'
 pkgname=gitea
 version=1.15.8
-revision=1
+revision=2
 create_wrksrc=yes
 build_style=go
 go_import_path=code.gitea.io/gitea

From d312f107c4415dd57c5903c3e334fc4e06ec823a Mon Sep 17 00:00:00 2001
From: mobinmob <mobinmob@disroot.org>
Date: Sat, 5 Feb 2022 12:54:59 +0200
Subject: [PATCH 7/7] monkey: add log service.

---
 srcpkgs/monkey/files/monkey/log/run | 1 +
 srcpkgs/monkey/files/monkey/run     | 1 +
 2 files changed, 2 insertions(+)
 create mode 120000 srcpkgs/monkey/files/monkey/log/run

diff --git a/srcpkgs/monkey/files/monkey/log/run b/srcpkgs/monkey/files/monkey/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/monkey/files/monkey/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/monkey/files/monkey/run b/srcpkgs/monkey/files/monkey/run
index 95dad012d94d..370656800d40 100644
--- a/srcpkgs/monkey/files/monkey/run
+++ b/srcpkgs/monkey/files/monkey/run
@@ -1,2 +1,3 @@
 #!/bin/sh
+2>&1
 exec monkey

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

* Re: [PR PATCH] [Updated] [wip] services fixes - enhancements
  2022-02-03 19:50 [PR PATCH] [wip] services fixes - enhancements mobinmob
                   ` (8 preceding siblings ...)
  2022-02-05 10:56 ` mobinmob
@ 2022-02-05 11:34 ` mobinmob
  2022-02-05 14:05 ` mobinmob
                   ` (4 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: mobinmob @ 2022-02-05 11:34 UTC (permalink / raw)
  To: ml

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

There is an updated pull request by mobinmob against master on the void-packages repository

https://github.com/mobinmob/void-packages service-fixes
https://github.com/void-linux/void-packages/pull/35384

[wip] services fixes - enhancements
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**
<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please [skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration)
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!-- 
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-service-fixes-35384.patch --]
[-- Type: text/x-diff, Size: 11510 bytes --]

From b81bf990c156ca86b0df2f5bb9e429697863b43f Mon Sep 17 00:00:00 2001
From: mobinmob <mobinmob@disroot.org>
Date: Thu, 3 Feb 2022 21:45:31 +0200
Subject: [PATCH 1/8] vault: fix and enhance service, add sample conf file.

---
 srcpkgs/vault/files/vault.conf    | 6 ++++++
 srcpkgs/vault/files/vault/log/run | 1 +
 srcpkgs/vault/files/vault/run     | 2 +-
 srcpkgs/vault/template            | 3 ++-
 4 files changed, 10 insertions(+), 2 deletions(-)
 create mode 100644 srcpkgs/vault/files/vault.conf
 create mode 120000 srcpkgs/vault/files/vault/log/run

diff --git a/srcpkgs/vault/files/vault.conf b/srcpkgs/vault/files/vault.conf
new file mode 100644
index 000000000000..c2a404c6cfcf
--- /dev/null
+++ b/srcpkgs/vault/files/vault.conf
@@ -0,0 +1,6 @@
+# Please configure vault according to the the documentation.
+# The contents below are the bare minimum to allow the service to run.
+
+storage "file" {
+  path = "/mnt/vault/data"
+}
diff --git a/srcpkgs/vault/files/vault/log/run b/srcpkgs/vault/files/vault/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/vault/files/vault/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/vault/files/vault/run b/srcpkgs/vault/files/vault/run
index 840cc2836921..f578ddbbbd39 100644
--- a/srcpkgs/vault/files/vault/run
+++ b/srcpkgs/vault/files/vault/run
@@ -1,3 +1,3 @@
 #!/bin/sh
 
-exec chpst -u _vault vault server -config=/etc/vault/
+exec chpst -u _vault vault server -config=/etc/vault.conf 2>&1
diff --git a/srcpkgs/vault/template b/srcpkgs/vault/template
index 1ba3566e77c7..ff6064bf94c5 100644
--- a/srcpkgs/vault/template
+++ b/srcpkgs/vault/template
@@ -1,7 +1,7 @@
 # Template file for 'vault'
 pkgname=vault
 version=1.9.2
-revision=1
+revision=2
 build_style=go
 go_import_path="github.com/hashicorp/vault"
 go_build_tags="release"
@@ -26,4 +26,5 @@ esac
 post_install() {
 	vlicense LICENSE
 	vsv vault
+	vconf ${FILESDIR}/vault.conf
 }

From f68a91d7e4ed394766c9a0e5695c8915a7be29dc Mon Sep 17 00:00:00 2001
From: mobinmob <mobinmob@disroot.org>
Date: Thu, 3 Feb 2022 22:08:22 +0200
Subject: [PATCH 2/8] spampd: add log service.

---
 srcpkgs/spampd/files/spampd/log/run | 1 +
 srcpkgs/spampd/files/spampd/run     | 2 +-
 srcpkgs/spampd/template             | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)
 create mode 120000 srcpkgs/spampd/files/spampd/log/run

diff --git a/srcpkgs/spampd/files/spampd/log/run b/srcpkgs/spampd/files/spampd/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/spampd/files/spampd/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/spampd/files/spampd/run b/srcpkgs/spampd/files/spampd/run
index 7c19ace4ea96..8db3b3a3f0c4 100755
--- a/srcpkgs/spampd/files/spampd/run
+++ b/srcpkgs/spampd/files/spampd/run
@@ -1,3 +1,3 @@
 #!/bin/sh
 [ -r conf ] && . ./conf
-exec spampd --nodetach ${OPTS:=--host=127.0.0.1:10025 --relayhost=127.0.0.1:10026 --a --rh --u=_spampd --g=_spampd --maxsize=512}
+exec spampd --nodetach ${OPTS:=--host=127.0.0.1:10025 --relayhost=127.0.0.1:10026 --a --rh --u=_spampd --g=_spampd --maxsize=512} 2>&1
diff --git a/srcpkgs/spampd/template b/srcpkgs/spampd/template
index 4380aae4f8bc..76bd4c99f9d7 100644
--- a/srcpkgs/spampd/template
+++ b/srcpkgs/spampd/template
@@ -1,7 +1,7 @@
 # Template file for 'spampd'
 pkgname=spampd
 version=2.30
-revision=2
+revision=3
 build_style=gnu-makefile
 hostmakedepends="perl"
 depends="perl perl-Net-Server spamassassin"

From 082a429c3a4a7bc3294c86ff759684ce277c56f2 Mon Sep 17 00:00:00 2001
From: mobinmob <mobinmob@disroot.org>
Date: Thu, 3 Feb 2022 22:17:54 +0200
Subject: [PATCH 3/8] etcd: add log service.

---
 srcpkgs/etcd/files/etcd/log/run | 1 +
 srcpkgs/etcd/files/etcd/run     | 2 +-
 srcpkgs/etcd/template           | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)
 create mode 120000 srcpkgs/etcd/files/etcd/log/run

diff --git a/srcpkgs/etcd/files/etcd/log/run b/srcpkgs/etcd/files/etcd/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/etcd/files/etcd/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/etcd/files/etcd/run b/srcpkgs/etcd/files/etcd/run
index 4d3f36562993..38100d14923f 100644
--- a/srcpkgs/etcd/files/etcd/run
+++ b/srcpkgs/etcd/files/etcd/run
@@ -4,4 +4,4 @@ export ETCD_DATA_DIR=/var/lib/etcd
 export ETCD_NAME=etcd
 
 [ -r conf ] && . ./conf
-exec chpst -u etcd:etcd etcd
+exec chpst -u etcd:etcd etcd 2>&1
diff --git a/srcpkgs/etcd/template b/srcpkgs/etcd/template
index b255d53874f7..fbf8e4c4a5cb 100644
--- a/srcpkgs/etcd/template
+++ b/srcpkgs/etcd/template
@@ -1,7 +1,7 @@
 # Template file for 'etcd'
 pkgname=etcd
 version=3.4.4
-revision=2
+revision=3
 build_style=go
 go_import_path="github.com/coreos/etcd"
 go_package="${go_import_path} ${go_import_path}/etcdctl"

From f7bac14c9bc95611acaeb5151d4d003f1c6daa0e Mon Sep 17 00:00:00 2001
From: mobinmob <mobinmob@disroot.org>
Date: Thu, 3 Feb 2022 22:24:35 +0200
Subject: [PATCH 4/8] cntlm: add log service.

---
 srcpkgs/cntlm/files/cntlm/log/run | 1 +
 srcpkgs/cntlm/template            | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
 create mode 120000 srcpkgs/cntlm/files/cntlm/log/run

diff --git a/srcpkgs/cntlm/files/cntlm/log/run b/srcpkgs/cntlm/files/cntlm/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/cntlm/files/cntlm/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/cntlm/template b/srcpkgs/cntlm/template
index 50da46505715..351bd94a07ab 100644
--- a/srcpkgs/cntlm/template
+++ b/srcpkgs/cntlm/template
@@ -1,7 +1,7 @@
 # Template file for 'cntlm'
 pkgname=cntlm
 version=0.92.3
-revision=6
+revision=7
 build_style=gnu-configure
 hostmakedepends="which"
 short_desc="NTLM / NTLM Session Response / NTLMv2 authenticating HTTP proxy"

From 01fffc0c1551d73fd73b7f9ab8ecdcd1911a1beb Mon Sep 17 00:00:00 2001
From: mobinmob <mobinmob@disroot.org>
Date: Sat, 5 Feb 2022 11:40:06 +0200
Subject: [PATCH 5/8] caddy: redirect stderr to the log service.

---
 srcpkgs/caddy/files/caddy/run | 2 +-
 srcpkgs/caddy/template        | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/caddy/files/caddy/run b/srcpkgs/caddy/files/caddy/run
index c8670fa67b69..36559e4af079 100644
--- a/srcpkgs/caddy/files/caddy/run
+++ b/srcpkgs/caddy/files/caddy/run
@@ -5,4 +5,4 @@
 export HOME=/var/lib/caddy
 ulimit -n ${MAX_OPEN_FILES:-8192}
 
-exec chpst -u caddy caddy run --config ${CONFFILE:-/etc/caddy/Caddyfile}
+exec chpst -u caddy caddy run --config ${CONFFILE:-/etc/caddy/Caddyfile} 2>&1
diff --git a/srcpkgs/caddy/template b/srcpkgs/caddy/template
index 762a36749b46..90057a7f8990 100644
--- a/srcpkgs/caddy/template
+++ b/srcpkgs/caddy/template
@@ -1,7 +1,7 @@
 # Template file for 'caddy'
 pkgname=caddy
 version=2.4.6
-revision=2
+revision=3
 build_style=go
 go_import_path=github.com/caddyserver/caddy/v2
 go_package="${go_import_path}/cmd/caddy"

From a5101d7ee5ac9c44327e2ea2bdc8fa67123ccc01 Mon Sep 17 00:00:00 2001
From: mobinmob <mobinmob@disroot.org>
Date: Sat, 5 Feb 2022 11:54:47 +0200
Subject: [PATCH 6/8] gitea: add log service.

---
 srcpkgs/gitea/files/gitea/log/run | 1 +
 srcpkgs/gitea/files/gitea/run     | 2 +-
 srcpkgs/gitea/template            | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)
 create mode 120000 srcpkgs/gitea/files/gitea/log/run

diff --git a/srcpkgs/gitea/files/gitea/log/run b/srcpkgs/gitea/files/gitea/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/gitea/files/gitea/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/gitea/files/gitea/run b/srcpkgs/gitea/files/gitea/run
index 591e977e729f..a8b6ff44cc3a 100755
--- a/srcpkgs/gitea/files/gitea/run
+++ b/srcpkgs/gitea/files/gitea/run
@@ -6,4 +6,4 @@ cd /var/lib/gitea
 # The USER variable is needed here because gitea doesn't actually
 # check what user its running as, it instead grabs the USER variable
 # from the environment.  HOME is set for the same reasons.
-USER=_gitea HOME=/var/lib/gitea GITEA_WORK_DIR=$HOME exec chpst -u _gitea:_gitea gitea web --config /etc/gitea.conf
+USER=_gitea HOME=/var/lib/gitea GITEA_WORK_DIR=$HOME exec chpst -u _gitea:_gitea gitea web --config /etc/gitea.conf 2>&1 
diff --git a/srcpkgs/gitea/template b/srcpkgs/gitea/template
index 2d998594cc15..d87acc950ce7 100644
--- a/srcpkgs/gitea/template
+++ b/srcpkgs/gitea/template
@@ -1,7 +1,7 @@
 # Template file for 'gitea'
 pkgname=gitea
 version=1.15.8
-revision=1
+revision=2
 create_wrksrc=yes
 build_style=go
 go_import_path=code.gitea.io/gitea

From dcb2250dcff5903107d2f1e3548e4cb73e754962 Mon Sep 17 00:00:00 2001
From: mobinmob <mobinmob@disroot.org>
Date: Sat, 5 Feb 2022 12:54:59 +0200
Subject: [PATCH 7/8] monkey: add log service.

---
 srcpkgs/monkey/files/monkey/log/run | 1 +
 srcpkgs/monkey/files/monkey/run     | 1 +
 srcpkgs/monkey/template             | 2 +-
 3 files changed, 3 insertions(+), 1 deletion(-)
 create mode 120000 srcpkgs/monkey/files/monkey/log/run

diff --git a/srcpkgs/monkey/files/monkey/log/run b/srcpkgs/monkey/files/monkey/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/monkey/files/monkey/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/monkey/files/monkey/run b/srcpkgs/monkey/files/monkey/run
index 95dad012d94d..370656800d40 100644
--- a/srcpkgs/monkey/files/monkey/run
+++ b/srcpkgs/monkey/files/monkey/run
@@ -1,2 +1,3 @@
 #!/bin/sh
+2>&1
 exec monkey
diff --git a/srcpkgs/monkey/template b/srcpkgs/monkey/template
index 4037c1815258..51e7c7404c45 100644
--- a/srcpkgs/monkey/template
+++ b/srcpkgs/monkey/template
@@ -1,7 +1,7 @@
 # Template file for 'monkey'
 pkgname=monkey
 version=1.6.9
-revision=4
+revision=5
 build_style=configure
 configure_args="--prefix=/usr --sbindir=/usr/bin
  --libdir=/usr/lib$XBPS_TARGET_WORDSIZE/$pkgname

From 94187048447fa6ba7b44a5beedd6f88d9e39abd1 Mon Sep 17 00:00:00 2001
From: mobinmob <mobinmob@disroot.org>
Date: Sat, 5 Feb 2022 13:33:33 +0200
Subject: [PATCH 8/8] thermald: add log service, fix logging.

---
 srcpkgs/thermald/files/thermald/log/run | 1 +
 srcpkgs/thermald/files/thermald/run     | 2 +-
 srcpkgs/thermald/template               | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)
 create mode 120000 srcpkgs/thermald/files/thermald/log/run

diff --git a/srcpkgs/thermald/files/thermald/log/run b/srcpkgs/thermald/files/thermald/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/thermald/files/thermald/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/thermald/files/thermald/run b/srcpkgs/thermald/files/thermald/run
index 4df7dd4eeb23..de5b6d5c3e1e 100644
--- a/srcpkgs/thermald/files/thermald/run
+++ b/srcpkgs/thermald/files/thermald/run
@@ -1,3 +1,3 @@
 #!/bin/sh
 sv check dbus >/dev/null || exit 1
-exec thermald --no-daemon --dbus-enable 1>&2
+exec thermald --no-daemon --dbus-enable 2>&1
diff --git a/srcpkgs/thermald/template b/srcpkgs/thermald/template
index 75a7fc0ce87d..3a3a2676540d 100644
--- a/srcpkgs/thermald/template
+++ b/srcpkgs/thermald/template
@@ -1,7 +1,7 @@
 # Template file for 'thermald'
 pkgname=thermald
 version=2.4.6
-revision=1
+revision=2
 _pkgname=thermal_daemon
 archs="i686* x86_64*"
 wrksrc="${_pkgname}-${version}"

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

* Re: [PR PATCH] [Updated] [wip] services fixes - enhancements
  2022-02-03 19:50 [PR PATCH] [wip] services fixes - enhancements mobinmob
                   ` (9 preceding siblings ...)
  2022-02-05 11:34 ` mobinmob
@ 2022-02-05 14:05 ` mobinmob
  2022-02-05 14:54 ` mobinmob
                   ` (3 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: mobinmob @ 2022-02-05 14:05 UTC (permalink / raw)
  To: ml

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

There is an updated pull request by mobinmob against master on the void-packages repository

https://github.com/mobinmob/void-packages service-fixes
https://github.com/void-linux/void-packages/pull/35384

[wip] services fixes - enhancements
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**
<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please [skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration)
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!-- 
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-service-fixes-35384.patch --]
[-- Type: text/x-diff, Size: 12531 bytes --]

From b81bf990c156ca86b0df2f5bb9e429697863b43f Mon Sep 17 00:00:00 2001
From: mobinmob <mobinmob@disroot.org>
Date: Thu, 3 Feb 2022 21:45:31 +0200
Subject: [PATCH 1/8] vault: fix and enhance service, add sample conf file.

---
 srcpkgs/vault/files/vault.conf    | 6 ++++++
 srcpkgs/vault/files/vault/log/run | 1 +
 srcpkgs/vault/files/vault/run     | 2 +-
 srcpkgs/vault/template            | 3 ++-
 4 files changed, 10 insertions(+), 2 deletions(-)
 create mode 100644 srcpkgs/vault/files/vault.conf
 create mode 120000 srcpkgs/vault/files/vault/log/run

diff --git a/srcpkgs/vault/files/vault.conf b/srcpkgs/vault/files/vault.conf
new file mode 100644
index 000000000000..c2a404c6cfcf
--- /dev/null
+++ b/srcpkgs/vault/files/vault.conf
@@ -0,0 +1,6 @@
+# Please configure vault according to the the documentation.
+# The contents below are the bare minimum to allow the service to run.
+
+storage "file" {
+  path = "/mnt/vault/data"
+}
diff --git a/srcpkgs/vault/files/vault/log/run b/srcpkgs/vault/files/vault/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/vault/files/vault/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/vault/files/vault/run b/srcpkgs/vault/files/vault/run
index 840cc2836921..f578ddbbbd39 100644
--- a/srcpkgs/vault/files/vault/run
+++ b/srcpkgs/vault/files/vault/run
@@ -1,3 +1,3 @@
 #!/bin/sh
 
-exec chpst -u _vault vault server -config=/etc/vault/
+exec chpst -u _vault vault server -config=/etc/vault.conf 2>&1
diff --git a/srcpkgs/vault/template b/srcpkgs/vault/template
index 1ba3566e77c7..ff6064bf94c5 100644
--- a/srcpkgs/vault/template
+++ b/srcpkgs/vault/template
@@ -1,7 +1,7 @@
 # Template file for 'vault'
 pkgname=vault
 version=1.9.2
-revision=1
+revision=2
 build_style=go
 go_import_path="github.com/hashicorp/vault"
 go_build_tags="release"
@@ -26,4 +26,5 @@ esac
 post_install() {
 	vlicense LICENSE
 	vsv vault
+	vconf ${FILESDIR}/vault.conf
 }

From f68a91d7e4ed394766c9a0e5695c8915a7be29dc Mon Sep 17 00:00:00 2001
From: mobinmob <mobinmob@disroot.org>
Date: Thu, 3 Feb 2022 22:08:22 +0200
Subject: [PATCH 2/8] spampd: add log service.

---
 srcpkgs/spampd/files/spampd/log/run | 1 +
 srcpkgs/spampd/files/spampd/run     | 2 +-
 srcpkgs/spampd/template             | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)
 create mode 120000 srcpkgs/spampd/files/spampd/log/run

diff --git a/srcpkgs/spampd/files/spampd/log/run b/srcpkgs/spampd/files/spampd/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/spampd/files/spampd/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/spampd/files/spampd/run b/srcpkgs/spampd/files/spampd/run
index 7c19ace4ea96..8db3b3a3f0c4 100755
--- a/srcpkgs/spampd/files/spampd/run
+++ b/srcpkgs/spampd/files/spampd/run
@@ -1,3 +1,3 @@
 #!/bin/sh
 [ -r conf ] && . ./conf
-exec spampd --nodetach ${OPTS:=--host=127.0.0.1:10025 --relayhost=127.0.0.1:10026 --a --rh --u=_spampd --g=_spampd --maxsize=512}
+exec spampd --nodetach ${OPTS:=--host=127.0.0.1:10025 --relayhost=127.0.0.1:10026 --a --rh --u=_spampd --g=_spampd --maxsize=512} 2>&1
diff --git a/srcpkgs/spampd/template b/srcpkgs/spampd/template
index 4380aae4f8bc..76bd4c99f9d7 100644
--- a/srcpkgs/spampd/template
+++ b/srcpkgs/spampd/template
@@ -1,7 +1,7 @@
 # Template file for 'spampd'
 pkgname=spampd
 version=2.30
-revision=2
+revision=3
 build_style=gnu-makefile
 hostmakedepends="perl"
 depends="perl perl-Net-Server spamassassin"

From 082a429c3a4a7bc3294c86ff759684ce277c56f2 Mon Sep 17 00:00:00 2001
From: mobinmob <mobinmob@disroot.org>
Date: Thu, 3 Feb 2022 22:17:54 +0200
Subject: [PATCH 3/8] etcd: add log service.

---
 srcpkgs/etcd/files/etcd/log/run | 1 +
 srcpkgs/etcd/files/etcd/run     | 2 +-
 srcpkgs/etcd/template           | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)
 create mode 120000 srcpkgs/etcd/files/etcd/log/run

diff --git a/srcpkgs/etcd/files/etcd/log/run b/srcpkgs/etcd/files/etcd/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/etcd/files/etcd/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/etcd/files/etcd/run b/srcpkgs/etcd/files/etcd/run
index 4d3f36562993..38100d14923f 100644
--- a/srcpkgs/etcd/files/etcd/run
+++ b/srcpkgs/etcd/files/etcd/run
@@ -4,4 +4,4 @@ export ETCD_DATA_DIR=/var/lib/etcd
 export ETCD_NAME=etcd
 
 [ -r conf ] && . ./conf
-exec chpst -u etcd:etcd etcd
+exec chpst -u etcd:etcd etcd 2>&1
diff --git a/srcpkgs/etcd/template b/srcpkgs/etcd/template
index b255d53874f7..fbf8e4c4a5cb 100644
--- a/srcpkgs/etcd/template
+++ b/srcpkgs/etcd/template
@@ -1,7 +1,7 @@
 # Template file for 'etcd'
 pkgname=etcd
 version=3.4.4
-revision=2
+revision=3
 build_style=go
 go_import_path="github.com/coreos/etcd"
 go_package="${go_import_path} ${go_import_path}/etcdctl"

From f7bac14c9bc95611acaeb5151d4d003f1c6daa0e Mon Sep 17 00:00:00 2001
From: mobinmob <mobinmob@disroot.org>
Date: Thu, 3 Feb 2022 22:24:35 +0200
Subject: [PATCH 4/8] cntlm: add log service.

---
 srcpkgs/cntlm/files/cntlm/log/run | 1 +
 srcpkgs/cntlm/template            | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
 create mode 120000 srcpkgs/cntlm/files/cntlm/log/run

diff --git a/srcpkgs/cntlm/files/cntlm/log/run b/srcpkgs/cntlm/files/cntlm/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/cntlm/files/cntlm/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/cntlm/template b/srcpkgs/cntlm/template
index 50da46505715..351bd94a07ab 100644
--- a/srcpkgs/cntlm/template
+++ b/srcpkgs/cntlm/template
@@ -1,7 +1,7 @@
 # Template file for 'cntlm'
 pkgname=cntlm
 version=0.92.3
-revision=6
+revision=7
 build_style=gnu-configure
 hostmakedepends="which"
 short_desc="NTLM / NTLM Session Response / NTLMv2 authenticating HTTP proxy"

From 01fffc0c1551d73fd73b7f9ab8ecdcd1911a1beb Mon Sep 17 00:00:00 2001
From: mobinmob <mobinmob@disroot.org>
Date: Sat, 5 Feb 2022 11:40:06 +0200
Subject: [PATCH 5/8] caddy: redirect stderr to the log service.

---
 srcpkgs/caddy/files/caddy/run | 2 +-
 srcpkgs/caddy/template        | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/caddy/files/caddy/run b/srcpkgs/caddy/files/caddy/run
index c8670fa67b69..36559e4af079 100644
--- a/srcpkgs/caddy/files/caddy/run
+++ b/srcpkgs/caddy/files/caddy/run
@@ -5,4 +5,4 @@
 export HOME=/var/lib/caddy
 ulimit -n ${MAX_OPEN_FILES:-8192}
 
-exec chpst -u caddy caddy run --config ${CONFFILE:-/etc/caddy/Caddyfile}
+exec chpst -u caddy caddy run --config ${CONFFILE:-/etc/caddy/Caddyfile} 2>&1
diff --git a/srcpkgs/caddy/template b/srcpkgs/caddy/template
index 762a36749b46..90057a7f8990 100644
--- a/srcpkgs/caddy/template
+++ b/srcpkgs/caddy/template
@@ -1,7 +1,7 @@
 # Template file for 'caddy'
 pkgname=caddy
 version=2.4.6
-revision=2
+revision=3
 build_style=go
 go_import_path=github.com/caddyserver/caddy/v2
 go_package="${go_import_path}/cmd/caddy"

From a5101d7ee5ac9c44327e2ea2bdc8fa67123ccc01 Mon Sep 17 00:00:00 2001
From: mobinmob <mobinmob@disroot.org>
Date: Sat, 5 Feb 2022 11:54:47 +0200
Subject: [PATCH 6/8] gitea: add log service.

---
 srcpkgs/gitea/files/gitea/log/run | 1 +
 srcpkgs/gitea/files/gitea/run     | 2 +-
 srcpkgs/gitea/template            | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)
 create mode 120000 srcpkgs/gitea/files/gitea/log/run

diff --git a/srcpkgs/gitea/files/gitea/log/run b/srcpkgs/gitea/files/gitea/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/gitea/files/gitea/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/gitea/files/gitea/run b/srcpkgs/gitea/files/gitea/run
index 591e977e729f..a8b6ff44cc3a 100755
--- a/srcpkgs/gitea/files/gitea/run
+++ b/srcpkgs/gitea/files/gitea/run
@@ -6,4 +6,4 @@ cd /var/lib/gitea
 # The USER variable is needed here because gitea doesn't actually
 # check what user its running as, it instead grabs the USER variable
 # from the environment.  HOME is set for the same reasons.
-USER=_gitea HOME=/var/lib/gitea GITEA_WORK_DIR=$HOME exec chpst -u _gitea:_gitea gitea web --config /etc/gitea.conf
+USER=_gitea HOME=/var/lib/gitea GITEA_WORK_DIR=$HOME exec chpst -u _gitea:_gitea gitea web --config /etc/gitea.conf 2>&1 
diff --git a/srcpkgs/gitea/template b/srcpkgs/gitea/template
index 2d998594cc15..d87acc950ce7 100644
--- a/srcpkgs/gitea/template
+++ b/srcpkgs/gitea/template
@@ -1,7 +1,7 @@
 # Template file for 'gitea'
 pkgname=gitea
 version=1.15.8
-revision=1
+revision=2
 create_wrksrc=yes
 build_style=go
 go_import_path=code.gitea.io/gitea

From 3bc0c36d956c2c3c6d0a8ea151b05dbaecf63fd0 Mon Sep 17 00:00:00 2001
From: mobinmob <mobinmob@disroot.org>
Date: Sat, 5 Feb 2022 15:59:58 +0200
Subject: [PATCH 7/8] monkey: add log service.

Also:
- add redirection to the service script
- remove the pid configuration option,
as it contributes to a wrong conf file.
---
 srcpkgs/monkey/files/monkey/log/run | 1 +
 srcpkgs/monkey/files/monkey/run     | 1 +
 srcpkgs/monkey/template             | 4 ++--
 3 files changed, 4 insertions(+), 2 deletions(-)
 create mode 120000 srcpkgs/monkey/files/monkey/log/run

diff --git a/srcpkgs/monkey/files/monkey/log/run b/srcpkgs/monkey/files/monkey/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/monkey/files/monkey/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/monkey/files/monkey/run b/srcpkgs/monkey/files/monkey/run
index 95dad012d94d..370656800d40 100644
--- a/srcpkgs/monkey/files/monkey/run
+++ b/srcpkgs/monkey/files/monkey/run
@@ -1,2 +1,3 @@
 #!/bin/sh
+2>&1
 exec monkey
diff --git a/srcpkgs/monkey/template b/srcpkgs/monkey/template
index 4037c1815258..5280a83e1006 100644
--- a/srcpkgs/monkey/template
+++ b/srcpkgs/monkey/template
@@ -1,13 +1,13 @@
 # Template file for 'monkey'
 pkgname=monkey
 version=1.6.9
-revision=4
+revision=5
 build_style=configure
 configure_args="--prefix=/usr --sbindir=/usr/bin
  --libdir=/usr/lib$XBPS_TARGET_WORDSIZE/$pkgname
  --sysconfdir=/etc/monkey/ --enable-plugins=mbedtls --malloc-libc
  --webroot=/srv/www/$pkgname --mandir=/usr/share/man --default-user=_monkey
- --pidfile=/var/run/monkey.pid --logdir=/var/log/monkey"
+ --logdir=/var/log/monkey"
 hostmakedepends="cmake"
 makedepends="mbedtls-devel"
 short_desc="Cross-arch embeddable lightweight HTTP server"

From 5e9bf555280ac4f0ca858db54c6cb85e98859e2d Mon Sep 17 00:00:00 2001
From: mobinmob <mobinmob@disroot.org>
Date: Sat, 5 Feb 2022 16:04:24 +0200
Subject: [PATCH 8/8] thermald: add log service, fix logging.

Also:
- fix xlint warnings.
---
 srcpkgs/thermald/files/thermald/log/run | 1 +
 srcpkgs/thermald/files/thermald/run     | 2 +-
 srcpkgs/thermald/template               | 5 ++---
 3 files changed, 4 insertions(+), 4 deletions(-)
 create mode 120000 srcpkgs/thermald/files/thermald/log/run

diff --git a/srcpkgs/thermald/files/thermald/log/run b/srcpkgs/thermald/files/thermald/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/thermald/files/thermald/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/thermald/files/thermald/run b/srcpkgs/thermald/files/thermald/run
index 4df7dd4eeb23..de5b6d5c3e1e 100644
--- a/srcpkgs/thermald/files/thermald/run
+++ b/srcpkgs/thermald/files/thermald/run
@@ -1,3 +1,3 @@
 #!/bin/sh
 sv check dbus >/dev/null || exit 1
-exec thermald --no-daemon --dbus-enable 1>&2
+exec thermald --no-daemon --dbus-enable 2>&1
diff --git a/srcpkgs/thermald/template b/srcpkgs/thermald/template
index 75a7fc0ce87d..f0d4e38453b3 100644
--- a/srcpkgs/thermald/template
+++ b/srcpkgs/thermald/template
@@ -1,8 +1,7 @@
 # Template file for 'thermald'
 pkgname=thermald
 version=2.4.6
-revision=1
-_pkgname=thermal_daemon
+revision=2
 archs="i686* x86_64*"
 wrksrc="${_pkgname}-${version}"
 build_style=gnu-configure
@@ -11,7 +10,7 @@ makedepends="dbus-glib-devel libxml2-devel libglib-devel libgomp-devel upower-de
 short_desc="Linux Thermal Daemon program from 01.org"
 maintainer="Andrea Brancaleoni <abc@pompel.me>"
 license="GPL-2.0-or-later"
-homepage="https://github.com/intel/${_pkgname}"
+homepage="https://github.com/intel/thermal_daemon"
 distfiles="${homepage}/archive/v${version}.tar.gz"
 checksum=80c92902a89b72a9df85c51a8b5fc472cc01b4410600ef1f56d62c4ac23890c1
 conf_files='/etc/thermald/*'

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

* Re: [PR PATCH] [Updated] [wip] services fixes - enhancements
  2022-02-03 19:50 [PR PATCH] [wip] services fixes - enhancements mobinmob
                   ` (10 preceding siblings ...)
  2022-02-05 14:05 ` mobinmob
@ 2022-02-05 14:54 ` mobinmob
  2022-02-05 20:30 ` [PR PATCH] [Updated] " mobinmob
                   ` (2 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: mobinmob @ 2022-02-05 14:54 UTC (permalink / raw)
  To: ml

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

There is an updated pull request by mobinmob against master on the void-packages repository

https://github.com/mobinmob/void-packages service-fixes
https://github.com/void-linux/void-packages/pull/35384

[wip] services fixes - enhancements
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**
<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please [skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration)
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!-- 
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-service-fixes-35384.patch --]
[-- Type: text/x-diff, Size: 12648 bytes --]

From b81bf990c156ca86b0df2f5bb9e429697863b43f Mon Sep 17 00:00:00 2001
From: mobinmob <mobinmob@disroot.org>
Date: Thu, 3 Feb 2022 21:45:31 +0200
Subject: [PATCH 1/8] vault: fix and enhance service, add sample conf file.

---
 srcpkgs/vault/files/vault.conf    | 6 ++++++
 srcpkgs/vault/files/vault/log/run | 1 +
 srcpkgs/vault/files/vault/run     | 2 +-
 srcpkgs/vault/template            | 3 ++-
 4 files changed, 10 insertions(+), 2 deletions(-)
 create mode 100644 srcpkgs/vault/files/vault.conf
 create mode 120000 srcpkgs/vault/files/vault/log/run

diff --git a/srcpkgs/vault/files/vault.conf b/srcpkgs/vault/files/vault.conf
new file mode 100644
index 000000000000..c2a404c6cfcf
--- /dev/null
+++ b/srcpkgs/vault/files/vault.conf
@@ -0,0 +1,6 @@
+# Please configure vault according to the the documentation.
+# The contents below are the bare minimum to allow the service to run.
+
+storage "file" {
+  path = "/mnt/vault/data"
+}
diff --git a/srcpkgs/vault/files/vault/log/run b/srcpkgs/vault/files/vault/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/vault/files/vault/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/vault/files/vault/run b/srcpkgs/vault/files/vault/run
index 840cc2836921..f578ddbbbd39 100644
--- a/srcpkgs/vault/files/vault/run
+++ b/srcpkgs/vault/files/vault/run
@@ -1,3 +1,3 @@
 #!/bin/sh
 
-exec chpst -u _vault vault server -config=/etc/vault/
+exec chpst -u _vault vault server -config=/etc/vault.conf 2>&1
diff --git a/srcpkgs/vault/template b/srcpkgs/vault/template
index 1ba3566e77c7..ff6064bf94c5 100644
--- a/srcpkgs/vault/template
+++ b/srcpkgs/vault/template
@@ -1,7 +1,7 @@
 # Template file for 'vault'
 pkgname=vault
 version=1.9.2
-revision=1
+revision=2
 build_style=go
 go_import_path="github.com/hashicorp/vault"
 go_build_tags="release"
@@ -26,4 +26,5 @@ esac
 post_install() {
 	vlicense LICENSE
 	vsv vault
+	vconf ${FILESDIR}/vault.conf
 }

From f68a91d7e4ed394766c9a0e5695c8915a7be29dc Mon Sep 17 00:00:00 2001
From: mobinmob <mobinmob@disroot.org>
Date: Thu, 3 Feb 2022 22:08:22 +0200
Subject: [PATCH 2/8] spampd: add log service.

---
 srcpkgs/spampd/files/spampd/log/run | 1 +
 srcpkgs/spampd/files/spampd/run     | 2 +-
 srcpkgs/spampd/template             | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)
 create mode 120000 srcpkgs/spampd/files/spampd/log/run

diff --git a/srcpkgs/spampd/files/spampd/log/run b/srcpkgs/spampd/files/spampd/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/spampd/files/spampd/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/spampd/files/spampd/run b/srcpkgs/spampd/files/spampd/run
index 7c19ace4ea96..8db3b3a3f0c4 100755
--- a/srcpkgs/spampd/files/spampd/run
+++ b/srcpkgs/spampd/files/spampd/run
@@ -1,3 +1,3 @@
 #!/bin/sh
 [ -r conf ] && . ./conf
-exec spampd --nodetach ${OPTS:=--host=127.0.0.1:10025 --relayhost=127.0.0.1:10026 --a --rh --u=_spampd --g=_spampd --maxsize=512}
+exec spampd --nodetach ${OPTS:=--host=127.0.0.1:10025 --relayhost=127.0.0.1:10026 --a --rh --u=_spampd --g=_spampd --maxsize=512} 2>&1
diff --git a/srcpkgs/spampd/template b/srcpkgs/spampd/template
index 4380aae4f8bc..76bd4c99f9d7 100644
--- a/srcpkgs/spampd/template
+++ b/srcpkgs/spampd/template
@@ -1,7 +1,7 @@
 # Template file for 'spampd'
 pkgname=spampd
 version=2.30
-revision=2
+revision=3
 build_style=gnu-makefile
 hostmakedepends="perl"
 depends="perl perl-Net-Server spamassassin"

From 082a429c3a4a7bc3294c86ff759684ce277c56f2 Mon Sep 17 00:00:00 2001
From: mobinmob <mobinmob@disroot.org>
Date: Thu, 3 Feb 2022 22:17:54 +0200
Subject: [PATCH 3/8] etcd: add log service.

---
 srcpkgs/etcd/files/etcd/log/run | 1 +
 srcpkgs/etcd/files/etcd/run     | 2 +-
 srcpkgs/etcd/template           | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)
 create mode 120000 srcpkgs/etcd/files/etcd/log/run

diff --git a/srcpkgs/etcd/files/etcd/log/run b/srcpkgs/etcd/files/etcd/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/etcd/files/etcd/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/etcd/files/etcd/run b/srcpkgs/etcd/files/etcd/run
index 4d3f36562993..38100d14923f 100644
--- a/srcpkgs/etcd/files/etcd/run
+++ b/srcpkgs/etcd/files/etcd/run
@@ -4,4 +4,4 @@ export ETCD_DATA_DIR=/var/lib/etcd
 export ETCD_NAME=etcd
 
 [ -r conf ] && . ./conf
-exec chpst -u etcd:etcd etcd
+exec chpst -u etcd:etcd etcd 2>&1
diff --git a/srcpkgs/etcd/template b/srcpkgs/etcd/template
index b255d53874f7..fbf8e4c4a5cb 100644
--- a/srcpkgs/etcd/template
+++ b/srcpkgs/etcd/template
@@ -1,7 +1,7 @@
 # Template file for 'etcd'
 pkgname=etcd
 version=3.4.4
-revision=2
+revision=3
 build_style=go
 go_import_path="github.com/coreos/etcd"
 go_package="${go_import_path} ${go_import_path}/etcdctl"

From f7bac14c9bc95611acaeb5151d4d003f1c6daa0e Mon Sep 17 00:00:00 2001
From: mobinmob <mobinmob@disroot.org>
Date: Thu, 3 Feb 2022 22:24:35 +0200
Subject: [PATCH 4/8] cntlm: add log service.

---
 srcpkgs/cntlm/files/cntlm/log/run | 1 +
 srcpkgs/cntlm/template            | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
 create mode 120000 srcpkgs/cntlm/files/cntlm/log/run

diff --git a/srcpkgs/cntlm/files/cntlm/log/run b/srcpkgs/cntlm/files/cntlm/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/cntlm/files/cntlm/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/cntlm/template b/srcpkgs/cntlm/template
index 50da46505715..351bd94a07ab 100644
--- a/srcpkgs/cntlm/template
+++ b/srcpkgs/cntlm/template
@@ -1,7 +1,7 @@
 # Template file for 'cntlm'
 pkgname=cntlm
 version=0.92.3
-revision=6
+revision=7
 build_style=gnu-configure
 hostmakedepends="which"
 short_desc="NTLM / NTLM Session Response / NTLMv2 authenticating HTTP proxy"

From 01fffc0c1551d73fd73b7f9ab8ecdcd1911a1beb Mon Sep 17 00:00:00 2001
From: mobinmob <mobinmob@disroot.org>
Date: Sat, 5 Feb 2022 11:40:06 +0200
Subject: [PATCH 5/8] caddy: redirect stderr to the log service.

---
 srcpkgs/caddy/files/caddy/run | 2 +-
 srcpkgs/caddy/template        | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/caddy/files/caddy/run b/srcpkgs/caddy/files/caddy/run
index c8670fa67b69..36559e4af079 100644
--- a/srcpkgs/caddy/files/caddy/run
+++ b/srcpkgs/caddy/files/caddy/run
@@ -5,4 +5,4 @@
 export HOME=/var/lib/caddy
 ulimit -n ${MAX_OPEN_FILES:-8192}
 
-exec chpst -u caddy caddy run --config ${CONFFILE:-/etc/caddy/Caddyfile}
+exec chpst -u caddy caddy run --config ${CONFFILE:-/etc/caddy/Caddyfile} 2>&1
diff --git a/srcpkgs/caddy/template b/srcpkgs/caddy/template
index 762a36749b46..90057a7f8990 100644
--- a/srcpkgs/caddy/template
+++ b/srcpkgs/caddy/template
@@ -1,7 +1,7 @@
 # Template file for 'caddy'
 pkgname=caddy
 version=2.4.6
-revision=2
+revision=3
 build_style=go
 go_import_path=github.com/caddyserver/caddy/v2
 go_package="${go_import_path}/cmd/caddy"

From a5101d7ee5ac9c44327e2ea2bdc8fa67123ccc01 Mon Sep 17 00:00:00 2001
From: mobinmob <mobinmob@disroot.org>
Date: Sat, 5 Feb 2022 11:54:47 +0200
Subject: [PATCH 6/8] gitea: add log service.

---
 srcpkgs/gitea/files/gitea/log/run | 1 +
 srcpkgs/gitea/files/gitea/run     | 2 +-
 srcpkgs/gitea/template            | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)
 create mode 120000 srcpkgs/gitea/files/gitea/log/run

diff --git a/srcpkgs/gitea/files/gitea/log/run b/srcpkgs/gitea/files/gitea/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/gitea/files/gitea/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/gitea/files/gitea/run b/srcpkgs/gitea/files/gitea/run
index 591e977e729f..a8b6ff44cc3a 100755
--- a/srcpkgs/gitea/files/gitea/run
+++ b/srcpkgs/gitea/files/gitea/run
@@ -6,4 +6,4 @@ cd /var/lib/gitea
 # The USER variable is needed here because gitea doesn't actually
 # check what user its running as, it instead grabs the USER variable
 # from the environment.  HOME is set for the same reasons.
-USER=_gitea HOME=/var/lib/gitea GITEA_WORK_DIR=$HOME exec chpst -u _gitea:_gitea gitea web --config /etc/gitea.conf
+USER=_gitea HOME=/var/lib/gitea GITEA_WORK_DIR=$HOME exec chpst -u _gitea:_gitea gitea web --config /etc/gitea.conf 2>&1 
diff --git a/srcpkgs/gitea/template b/srcpkgs/gitea/template
index 2d998594cc15..d87acc950ce7 100644
--- a/srcpkgs/gitea/template
+++ b/srcpkgs/gitea/template
@@ -1,7 +1,7 @@
 # Template file for 'gitea'
 pkgname=gitea
 version=1.15.8
-revision=1
+revision=2
 create_wrksrc=yes
 build_style=go
 go_import_path=code.gitea.io/gitea

From 3bc0c36d956c2c3c6d0a8ea151b05dbaecf63fd0 Mon Sep 17 00:00:00 2001
From: mobinmob <mobinmob@disroot.org>
Date: Sat, 5 Feb 2022 15:59:58 +0200
Subject: [PATCH 7/8] monkey: add log service.

Also:
- add redirection to the service script
- remove the pid configuration option,
as it contributes to a wrong conf file.
---
 srcpkgs/monkey/files/monkey/log/run | 1 +
 srcpkgs/monkey/files/monkey/run     | 1 +
 srcpkgs/monkey/template             | 4 ++--
 3 files changed, 4 insertions(+), 2 deletions(-)
 create mode 120000 srcpkgs/monkey/files/monkey/log/run

diff --git a/srcpkgs/monkey/files/monkey/log/run b/srcpkgs/monkey/files/monkey/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/monkey/files/monkey/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/monkey/files/monkey/run b/srcpkgs/monkey/files/monkey/run
index 95dad012d94d..370656800d40 100644
--- a/srcpkgs/monkey/files/monkey/run
+++ b/srcpkgs/monkey/files/monkey/run
@@ -1,2 +1,3 @@
 #!/bin/sh
+2>&1
 exec monkey
diff --git a/srcpkgs/monkey/template b/srcpkgs/monkey/template
index 4037c1815258..5280a83e1006 100644
--- a/srcpkgs/monkey/template
+++ b/srcpkgs/monkey/template
@@ -1,13 +1,13 @@
 # Template file for 'monkey'
 pkgname=monkey
 version=1.6.9
-revision=4
+revision=5
 build_style=configure
 configure_args="--prefix=/usr --sbindir=/usr/bin
  --libdir=/usr/lib$XBPS_TARGET_WORDSIZE/$pkgname
  --sysconfdir=/etc/monkey/ --enable-plugins=mbedtls --malloc-libc
  --webroot=/srv/www/$pkgname --mandir=/usr/share/man --default-user=_monkey
- --pidfile=/var/run/monkey.pid --logdir=/var/log/monkey"
+ --logdir=/var/log/monkey"
 hostmakedepends="cmake"
 makedepends="mbedtls-devel"
 short_desc="Cross-arch embeddable lightweight HTTP server"

From 3d984ad3c76ce54779bdc72331af396f4d3f32fd Mon Sep 17 00:00:00 2001
From: mobinmob <mobinmob@disroot.org>
Date: Sat, 5 Feb 2022 16:04:24 +0200
Subject: [PATCH 8/8] thermald: add log service, fix logging.

Also:
- fix xlint warnings.
---
 srcpkgs/thermald/files/thermald/log/run | 1 +
 srcpkgs/thermald/files/thermald/run     | 2 +-
 srcpkgs/thermald/template               | 7 +++----
 3 files changed, 5 insertions(+), 5 deletions(-)
 create mode 120000 srcpkgs/thermald/files/thermald/log/run

diff --git a/srcpkgs/thermald/files/thermald/log/run b/srcpkgs/thermald/files/thermald/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/thermald/files/thermald/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/thermald/files/thermald/run b/srcpkgs/thermald/files/thermald/run
index 4df7dd4eeb23..de5b6d5c3e1e 100644
--- a/srcpkgs/thermald/files/thermald/run
+++ b/srcpkgs/thermald/files/thermald/run
@@ -1,3 +1,3 @@
 #!/bin/sh
 sv check dbus >/dev/null || exit 1
-exec thermald --no-daemon --dbus-enable 1>&2
+exec thermald --no-daemon --dbus-enable 2>&1
diff --git a/srcpkgs/thermald/template b/srcpkgs/thermald/template
index 75a7fc0ce87d..f5d344264e4a 100644
--- a/srcpkgs/thermald/template
+++ b/srcpkgs/thermald/template
@@ -1,17 +1,16 @@
 # Template file for 'thermald'
 pkgname=thermald
 version=2.4.6
-revision=1
-_pkgname=thermal_daemon
+revision=2
 archs="i686* x86_64*"
-wrksrc="${_pkgname}-${version}"
+wrksrc="thermal_daemon-${version}"
 build_style=gnu-configure
 hostmakedepends="automake pkg-config glib-devel gtk-doc autoconf-archive"
 makedepends="dbus-glib-devel libxml2-devel libglib-devel libgomp-devel upower-devel libevdev-devel"
 short_desc="Linux Thermal Daemon program from 01.org"
 maintainer="Andrea Brancaleoni <abc@pompel.me>"
 license="GPL-2.0-or-later"
-homepage="https://github.com/intel/${_pkgname}"
+homepage="https://github.com/intel/thermal_daemon"
 distfiles="${homepage}/archive/v${version}.tar.gz"
 checksum=80c92902a89b72a9df85c51a8b5fc472cc01b4410600ef1f56d62c4ac23890c1
 conf_files='/etc/thermald/*'

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

* Re: [PR PATCH] [Updated] services fixes - enhancements
  2022-02-03 19:50 [PR PATCH] [wip] services fixes - enhancements mobinmob
                   ` (11 preceding siblings ...)
  2022-02-05 14:54 ` mobinmob
@ 2022-02-05 20:30 ` mobinmob
  2022-02-05 20:31 ` mobinmob
  2022-05-28 11:28 ` [PR PATCH] [Closed]: " mobinmob
  14 siblings, 0 replies; 16+ messages in thread
From: mobinmob @ 2022-02-05 20:30 UTC (permalink / raw)
  To: ml

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

There is an updated pull request by mobinmob against master on the void-packages repository

https://github.com/mobinmob/void-packages service-fixes
https://github.com/void-linux/void-packages/pull/35384

services fixes - enhancements
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**
<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please [skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration)
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!-- 
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-service-fixes-35384.patch --]
[-- Type: text/x-diff, Size: 13664 bytes --]

From b81bf990c156ca86b0df2f5bb9e429697863b43f Mon Sep 17 00:00:00 2001
From: mobinmob <mobinmob@disroot.org>
Date: Thu, 3 Feb 2022 21:45:31 +0200
Subject: [PATCH 1/9] vault: fix and enhance service, add sample conf file.

---
 srcpkgs/vault/files/vault.conf    | 6 ++++++
 srcpkgs/vault/files/vault/log/run | 1 +
 srcpkgs/vault/files/vault/run     | 2 +-
 srcpkgs/vault/template            | 3 ++-
 4 files changed, 10 insertions(+), 2 deletions(-)
 create mode 100644 srcpkgs/vault/files/vault.conf
 create mode 120000 srcpkgs/vault/files/vault/log/run

diff --git a/srcpkgs/vault/files/vault.conf b/srcpkgs/vault/files/vault.conf
new file mode 100644
index 000000000000..c2a404c6cfcf
--- /dev/null
+++ b/srcpkgs/vault/files/vault.conf
@@ -0,0 +1,6 @@
+# Please configure vault according to the the documentation.
+# The contents below are the bare minimum to allow the service to run.
+
+storage "file" {
+  path = "/mnt/vault/data"
+}
diff --git a/srcpkgs/vault/files/vault/log/run b/srcpkgs/vault/files/vault/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/vault/files/vault/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/vault/files/vault/run b/srcpkgs/vault/files/vault/run
index 840cc2836921..f578ddbbbd39 100644
--- a/srcpkgs/vault/files/vault/run
+++ b/srcpkgs/vault/files/vault/run
@@ -1,3 +1,3 @@
 #!/bin/sh
 
-exec chpst -u _vault vault server -config=/etc/vault/
+exec chpst -u _vault vault server -config=/etc/vault.conf 2>&1
diff --git a/srcpkgs/vault/template b/srcpkgs/vault/template
index 1ba3566e77c7..ff6064bf94c5 100644
--- a/srcpkgs/vault/template
+++ b/srcpkgs/vault/template
@@ -1,7 +1,7 @@
 # Template file for 'vault'
 pkgname=vault
 version=1.9.2
-revision=1
+revision=2
 build_style=go
 go_import_path="github.com/hashicorp/vault"
 go_build_tags="release"
@@ -26,4 +26,5 @@ esac
 post_install() {
 	vlicense LICENSE
 	vsv vault
+	vconf ${FILESDIR}/vault.conf
 }

From f68a91d7e4ed394766c9a0e5695c8915a7be29dc Mon Sep 17 00:00:00 2001
From: mobinmob <mobinmob@disroot.org>
Date: Thu, 3 Feb 2022 22:08:22 +0200
Subject: [PATCH 2/9] spampd: add log service.

---
 srcpkgs/spampd/files/spampd/log/run | 1 +
 srcpkgs/spampd/files/spampd/run     | 2 +-
 srcpkgs/spampd/template             | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)
 create mode 120000 srcpkgs/spampd/files/spampd/log/run

diff --git a/srcpkgs/spampd/files/spampd/log/run b/srcpkgs/spampd/files/spampd/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/spampd/files/spampd/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/spampd/files/spampd/run b/srcpkgs/spampd/files/spampd/run
index 7c19ace4ea96..8db3b3a3f0c4 100755
--- a/srcpkgs/spampd/files/spampd/run
+++ b/srcpkgs/spampd/files/spampd/run
@@ -1,3 +1,3 @@
 #!/bin/sh
 [ -r conf ] && . ./conf
-exec spampd --nodetach ${OPTS:=--host=127.0.0.1:10025 --relayhost=127.0.0.1:10026 --a --rh --u=_spampd --g=_spampd --maxsize=512}
+exec spampd --nodetach ${OPTS:=--host=127.0.0.1:10025 --relayhost=127.0.0.1:10026 --a --rh --u=_spampd --g=_spampd --maxsize=512} 2>&1
diff --git a/srcpkgs/spampd/template b/srcpkgs/spampd/template
index 4380aae4f8bc..76bd4c99f9d7 100644
--- a/srcpkgs/spampd/template
+++ b/srcpkgs/spampd/template
@@ -1,7 +1,7 @@
 # Template file for 'spampd'
 pkgname=spampd
 version=2.30
-revision=2
+revision=3
 build_style=gnu-makefile
 hostmakedepends="perl"
 depends="perl perl-Net-Server spamassassin"

From 082a429c3a4a7bc3294c86ff759684ce277c56f2 Mon Sep 17 00:00:00 2001
From: mobinmob <mobinmob@disroot.org>
Date: Thu, 3 Feb 2022 22:17:54 +0200
Subject: [PATCH 3/9] etcd: add log service.

---
 srcpkgs/etcd/files/etcd/log/run | 1 +
 srcpkgs/etcd/files/etcd/run     | 2 +-
 srcpkgs/etcd/template           | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)
 create mode 120000 srcpkgs/etcd/files/etcd/log/run

diff --git a/srcpkgs/etcd/files/etcd/log/run b/srcpkgs/etcd/files/etcd/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/etcd/files/etcd/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/etcd/files/etcd/run b/srcpkgs/etcd/files/etcd/run
index 4d3f36562993..38100d14923f 100644
--- a/srcpkgs/etcd/files/etcd/run
+++ b/srcpkgs/etcd/files/etcd/run
@@ -4,4 +4,4 @@ export ETCD_DATA_DIR=/var/lib/etcd
 export ETCD_NAME=etcd
 
 [ -r conf ] && . ./conf
-exec chpst -u etcd:etcd etcd
+exec chpst -u etcd:etcd etcd 2>&1
diff --git a/srcpkgs/etcd/template b/srcpkgs/etcd/template
index b255d53874f7..fbf8e4c4a5cb 100644
--- a/srcpkgs/etcd/template
+++ b/srcpkgs/etcd/template
@@ -1,7 +1,7 @@
 # Template file for 'etcd'
 pkgname=etcd
 version=3.4.4
-revision=2
+revision=3
 build_style=go
 go_import_path="github.com/coreos/etcd"
 go_package="${go_import_path} ${go_import_path}/etcdctl"

From f7bac14c9bc95611acaeb5151d4d003f1c6daa0e Mon Sep 17 00:00:00 2001
From: mobinmob <mobinmob@disroot.org>
Date: Thu, 3 Feb 2022 22:24:35 +0200
Subject: [PATCH 4/9] cntlm: add log service.

---
 srcpkgs/cntlm/files/cntlm/log/run | 1 +
 srcpkgs/cntlm/template            | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
 create mode 120000 srcpkgs/cntlm/files/cntlm/log/run

diff --git a/srcpkgs/cntlm/files/cntlm/log/run b/srcpkgs/cntlm/files/cntlm/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/cntlm/files/cntlm/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/cntlm/template b/srcpkgs/cntlm/template
index 50da46505715..351bd94a07ab 100644
--- a/srcpkgs/cntlm/template
+++ b/srcpkgs/cntlm/template
@@ -1,7 +1,7 @@
 # Template file for 'cntlm'
 pkgname=cntlm
 version=0.92.3
-revision=6
+revision=7
 build_style=gnu-configure
 hostmakedepends="which"
 short_desc="NTLM / NTLM Session Response / NTLMv2 authenticating HTTP proxy"

From 01fffc0c1551d73fd73b7f9ab8ecdcd1911a1beb Mon Sep 17 00:00:00 2001
From: mobinmob <mobinmob@disroot.org>
Date: Sat, 5 Feb 2022 11:40:06 +0200
Subject: [PATCH 5/9] caddy: redirect stderr to the log service.

---
 srcpkgs/caddy/files/caddy/run | 2 +-
 srcpkgs/caddy/template        | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/caddy/files/caddy/run b/srcpkgs/caddy/files/caddy/run
index c8670fa67b69..36559e4af079 100644
--- a/srcpkgs/caddy/files/caddy/run
+++ b/srcpkgs/caddy/files/caddy/run
@@ -5,4 +5,4 @@
 export HOME=/var/lib/caddy
 ulimit -n ${MAX_OPEN_FILES:-8192}
 
-exec chpst -u caddy caddy run --config ${CONFFILE:-/etc/caddy/Caddyfile}
+exec chpst -u caddy caddy run --config ${CONFFILE:-/etc/caddy/Caddyfile} 2>&1
diff --git a/srcpkgs/caddy/template b/srcpkgs/caddy/template
index 762a36749b46..90057a7f8990 100644
--- a/srcpkgs/caddy/template
+++ b/srcpkgs/caddy/template
@@ -1,7 +1,7 @@
 # Template file for 'caddy'
 pkgname=caddy
 version=2.4.6
-revision=2
+revision=3
 build_style=go
 go_import_path=github.com/caddyserver/caddy/v2
 go_package="${go_import_path}/cmd/caddy"

From a5101d7ee5ac9c44327e2ea2bdc8fa67123ccc01 Mon Sep 17 00:00:00 2001
From: mobinmob <mobinmob@disroot.org>
Date: Sat, 5 Feb 2022 11:54:47 +0200
Subject: [PATCH 6/9] gitea: add log service.

---
 srcpkgs/gitea/files/gitea/log/run | 1 +
 srcpkgs/gitea/files/gitea/run     | 2 +-
 srcpkgs/gitea/template            | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)
 create mode 120000 srcpkgs/gitea/files/gitea/log/run

diff --git a/srcpkgs/gitea/files/gitea/log/run b/srcpkgs/gitea/files/gitea/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/gitea/files/gitea/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/gitea/files/gitea/run b/srcpkgs/gitea/files/gitea/run
index 591e977e729f..a8b6ff44cc3a 100755
--- a/srcpkgs/gitea/files/gitea/run
+++ b/srcpkgs/gitea/files/gitea/run
@@ -6,4 +6,4 @@ cd /var/lib/gitea
 # The USER variable is needed here because gitea doesn't actually
 # check what user its running as, it instead grabs the USER variable
 # from the environment.  HOME is set for the same reasons.
-USER=_gitea HOME=/var/lib/gitea GITEA_WORK_DIR=$HOME exec chpst -u _gitea:_gitea gitea web --config /etc/gitea.conf
+USER=_gitea HOME=/var/lib/gitea GITEA_WORK_DIR=$HOME exec chpst -u _gitea:_gitea gitea web --config /etc/gitea.conf 2>&1 
diff --git a/srcpkgs/gitea/template b/srcpkgs/gitea/template
index 2d998594cc15..d87acc950ce7 100644
--- a/srcpkgs/gitea/template
+++ b/srcpkgs/gitea/template
@@ -1,7 +1,7 @@
 # Template file for 'gitea'
 pkgname=gitea
 version=1.15.8
-revision=1
+revision=2
 create_wrksrc=yes
 build_style=go
 go_import_path=code.gitea.io/gitea

From 3bc0c36d956c2c3c6d0a8ea151b05dbaecf63fd0 Mon Sep 17 00:00:00 2001
From: mobinmob <mobinmob@disroot.org>
Date: Sat, 5 Feb 2022 15:59:58 +0200
Subject: [PATCH 7/9] monkey: add log service.

Also:
- add redirection to the service script
- remove the pid configuration option,
as it contributes to a wrong conf file.
---
 srcpkgs/monkey/files/monkey/log/run | 1 +
 srcpkgs/monkey/files/monkey/run     | 1 +
 srcpkgs/monkey/template             | 4 ++--
 3 files changed, 4 insertions(+), 2 deletions(-)
 create mode 120000 srcpkgs/monkey/files/monkey/log/run

diff --git a/srcpkgs/monkey/files/monkey/log/run b/srcpkgs/monkey/files/monkey/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/monkey/files/monkey/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/monkey/files/monkey/run b/srcpkgs/monkey/files/monkey/run
index 95dad012d94d..370656800d40 100644
--- a/srcpkgs/monkey/files/monkey/run
+++ b/srcpkgs/monkey/files/monkey/run
@@ -1,2 +1,3 @@
 #!/bin/sh
+2>&1
 exec monkey
diff --git a/srcpkgs/monkey/template b/srcpkgs/monkey/template
index 4037c1815258..5280a83e1006 100644
--- a/srcpkgs/monkey/template
+++ b/srcpkgs/monkey/template
@@ -1,13 +1,13 @@
 # Template file for 'monkey'
 pkgname=monkey
 version=1.6.9
-revision=4
+revision=5
 build_style=configure
 configure_args="--prefix=/usr --sbindir=/usr/bin
  --libdir=/usr/lib$XBPS_TARGET_WORDSIZE/$pkgname
  --sysconfdir=/etc/monkey/ --enable-plugins=mbedtls --malloc-libc
  --webroot=/srv/www/$pkgname --mandir=/usr/share/man --default-user=_monkey
- --pidfile=/var/run/monkey.pid --logdir=/var/log/monkey"
+ --logdir=/var/log/monkey"
 hostmakedepends="cmake"
 makedepends="mbedtls-devel"
 short_desc="Cross-arch embeddable lightweight HTTP server"

From 3d984ad3c76ce54779bdc72331af396f4d3f32fd Mon Sep 17 00:00:00 2001
From: mobinmob <mobinmob@disroot.org>
Date: Sat, 5 Feb 2022 16:04:24 +0200
Subject: [PATCH 8/9] thermald: add log service, fix logging.

Also:
- fix xlint warnings.
---
 srcpkgs/thermald/files/thermald/log/run | 1 +
 srcpkgs/thermald/files/thermald/run     | 2 +-
 srcpkgs/thermald/template               | 7 +++----
 3 files changed, 5 insertions(+), 5 deletions(-)
 create mode 120000 srcpkgs/thermald/files/thermald/log/run

diff --git a/srcpkgs/thermald/files/thermald/log/run b/srcpkgs/thermald/files/thermald/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/thermald/files/thermald/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/thermald/files/thermald/run b/srcpkgs/thermald/files/thermald/run
index 4df7dd4eeb23..de5b6d5c3e1e 100644
--- a/srcpkgs/thermald/files/thermald/run
+++ b/srcpkgs/thermald/files/thermald/run
@@ -1,3 +1,3 @@
 #!/bin/sh
 sv check dbus >/dev/null || exit 1
-exec thermald --no-daemon --dbus-enable 1>&2
+exec thermald --no-daemon --dbus-enable 2>&1
diff --git a/srcpkgs/thermald/template b/srcpkgs/thermald/template
index 75a7fc0ce87d..f5d344264e4a 100644
--- a/srcpkgs/thermald/template
+++ b/srcpkgs/thermald/template
@@ -1,17 +1,16 @@
 # Template file for 'thermald'
 pkgname=thermald
 version=2.4.6
-revision=1
-_pkgname=thermal_daemon
+revision=2
 archs="i686* x86_64*"
-wrksrc="${_pkgname}-${version}"
+wrksrc="thermal_daemon-${version}"
 build_style=gnu-configure
 hostmakedepends="automake pkg-config glib-devel gtk-doc autoconf-archive"
 makedepends="dbus-glib-devel libxml2-devel libglib-devel libgomp-devel upower-devel libevdev-devel"
 short_desc="Linux Thermal Daemon program from 01.org"
 maintainer="Andrea Brancaleoni <abc@pompel.me>"
 license="GPL-2.0-or-later"
-homepage="https://github.com/intel/${_pkgname}"
+homepage="https://github.com/intel/thermal_daemon"
 distfiles="${homepage}/archive/v${version}.tar.gz"
 checksum=80c92902a89b72a9df85c51a8b5fc472cc01b4410600ef1f56d62c4ac23890c1
 conf_files='/etc/thermald/*'

From 461c18f38db57588d68f9987b88f3aff79ef232c Mon Sep 17 00:00:00 2001
From: mobinmob <mobinmob@disroot.org>
Date: Sat, 5 Feb 2022 22:29:25 +0200
Subject: [PATCH 9/9] gnunet:add log service.

---
 srcpkgs/gnunet/files/gnunet/log/run | 1 +
 srcpkgs/gnunet/files/gnunet/run     | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
 create mode 120000 srcpkgs/gnunet/files/gnunet/log/run

diff --git a/srcpkgs/gnunet/files/gnunet/log/run b/srcpkgs/gnunet/files/gnunet/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/gnunet/files/gnunet/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/gnunet/files/gnunet/run b/srcpkgs/gnunet/files/gnunet/run
index 4adb83a4d027..467768f40817 100644
--- a/srcpkgs/gnunet/files/gnunet/run
+++ b/srcpkgs/gnunet/files/gnunet/run
@@ -1,2 +1,2 @@
 #!/bin/sh
-/usr/lib/gnunet/libexec/gnunet-service-arm -c /etc/gnunet/gnunet.conf
+/usr/lib/gnunet/libexec/gnunet-service-arm -c /etc/gnunet/gnunet.conf 2>&1

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

* Re: [PR PATCH] [Updated] services fixes - enhancements
  2022-02-03 19:50 [PR PATCH] [wip] services fixes - enhancements mobinmob
                   ` (12 preceding siblings ...)
  2022-02-05 20:30 ` [PR PATCH] [Updated] " mobinmob
@ 2022-02-05 20:31 ` mobinmob
  2022-05-28 11:28 ` [PR PATCH] [Closed]: " mobinmob
  14 siblings, 0 replies; 16+ messages in thread
From: mobinmob @ 2022-02-05 20:31 UTC (permalink / raw)
  To: ml

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

There is an updated pull request by mobinmob against master on the void-packages repository

https://github.com/mobinmob/void-packages service-fixes
https://github.com/void-linux/void-packages/pull/35384

services fixes - enhancements
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**
<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please [skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration)
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!-- 
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-service-fixes-35384.patch --]
[-- Type: text/x-diff, Size: 14120 bytes --]

From b81bf990c156ca86b0df2f5bb9e429697863b43f Mon Sep 17 00:00:00 2001
From: mobinmob <mobinmob@disroot.org>
Date: Thu, 3 Feb 2022 21:45:31 +0200
Subject: [PATCH 1/9] vault: fix and enhance service, add sample conf file.

---
 srcpkgs/vault/files/vault.conf    | 6 ++++++
 srcpkgs/vault/files/vault/log/run | 1 +
 srcpkgs/vault/files/vault/run     | 2 +-
 srcpkgs/vault/template            | 3 ++-
 4 files changed, 10 insertions(+), 2 deletions(-)
 create mode 100644 srcpkgs/vault/files/vault.conf
 create mode 120000 srcpkgs/vault/files/vault/log/run

diff --git a/srcpkgs/vault/files/vault.conf b/srcpkgs/vault/files/vault.conf
new file mode 100644
index 000000000000..c2a404c6cfcf
--- /dev/null
+++ b/srcpkgs/vault/files/vault.conf
@@ -0,0 +1,6 @@
+# Please configure vault according to the the documentation.
+# The contents below are the bare minimum to allow the service to run.
+
+storage "file" {
+  path = "/mnt/vault/data"
+}
diff --git a/srcpkgs/vault/files/vault/log/run b/srcpkgs/vault/files/vault/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/vault/files/vault/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/vault/files/vault/run b/srcpkgs/vault/files/vault/run
index 840cc2836921..f578ddbbbd39 100644
--- a/srcpkgs/vault/files/vault/run
+++ b/srcpkgs/vault/files/vault/run
@@ -1,3 +1,3 @@
 #!/bin/sh
 
-exec chpst -u _vault vault server -config=/etc/vault/
+exec chpst -u _vault vault server -config=/etc/vault.conf 2>&1
diff --git a/srcpkgs/vault/template b/srcpkgs/vault/template
index 1ba3566e77c7..ff6064bf94c5 100644
--- a/srcpkgs/vault/template
+++ b/srcpkgs/vault/template
@@ -1,7 +1,7 @@
 # Template file for 'vault'
 pkgname=vault
 version=1.9.2
-revision=1
+revision=2
 build_style=go
 go_import_path="github.com/hashicorp/vault"
 go_build_tags="release"
@@ -26,4 +26,5 @@ esac
 post_install() {
 	vlicense LICENSE
 	vsv vault
+	vconf ${FILESDIR}/vault.conf
 }

From f68a91d7e4ed394766c9a0e5695c8915a7be29dc Mon Sep 17 00:00:00 2001
From: mobinmob <mobinmob@disroot.org>
Date: Thu, 3 Feb 2022 22:08:22 +0200
Subject: [PATCH 2/9] spampd: add log service.

---
 srcpkgs/spampd/files/spampd/log/run | 1 +
 srcpkgs/spampd/files/spampd/run     | 2 +-
 srcpkgs/spampd/template             | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)
 create mode 120000 srcpkgs/spampd/files/spampd/log/run

diff --git a/srcpkgs/spampd/files/spampd/log/run b/srcpkgs/spampd/files/spampd/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/spampd/files/spampd/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/spampd/files/spampd/run b/srcpkgs/spampd/files/spampd/run
index 7c19ace4ea96..8db3b3a3f0c4 100755
--- a/srcpkgs/spampd/files/spampd/run
+++ b/srcpkgs/spampd/files/spampd/run
@@ -1,3 +1,3 @@
 #!/bin/sh
 [ -r conf ] && . ./conf
-exec spampd --nodetach ${OPTS:=--host=127.0.0.1:10025 --relayhost=127.0.0.1:10026 --a --rh --u=_spampd --g=_spampd --maxsize=512}
+exec spampd --nodetach ${OPTS:=--host=127.0.0.1:10025 --relayhost=127.0.0.1:10026 --a --rh --u=_spampd --g=_spampd --maxsize=512} 2>&1
diff --git a/srcpkgs/spampd/template b/srcpkgs/spampd/template
index 4380aae4f8bc..76bd4c99f9d7 100644
--- a/srcpkgs/spampd/template
+++ b/srcpkgs/spampd/template
@@ -1,7 +1,7 @@
 # Template file for 'spampd'
 pkgname=spampd
 version=2.30
-revision=2
+revision=3
 build_style=gnu-makefile
 hostmakedepends="perl"
 depends="perl perl-Net-Server spamassassin"

From 082a429c3a4a7bc3294c86ff759684ce277c56f2 Mon Sep 17 00:00:00 2001
From: mobinmob <mobinmob@disroot.org>
Date: Thu, 3 Feb 2022 22:17:54 +0200
Subject: [PATCH 3/9] etcd: add log service.

---
 srcpkgs/etcd/files/etcd/log/run | 1 +
 srcpkgs/etcd/files/etcd/run     | 2 +-
 srcpkgs/etcd/template           | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)
 create mode 120000 srcpkgs/etcd/files/etcd/log/run

diff --git a/srcpkgs/etcd/files/etcd/log/run b/srcpkgs/etcd/files/etcd/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/etcd/files/etcd/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/etcd/files/etcd/run b/srcpkgs/etcd/files/etcd/run
index 4d3f36562993..38100d14923f 100644
--- a/srcpkgs/etcd/files/etcd/run
+++ b/srcpkgs/etcd/files/etcd/run
@@ -4,4 +4,4 @@ export ETCD_DATA_DIR=/var/lib/etcd
 export ETCD_NAME=etcd
 
 [ -r conf ] && . ./conf
-exec chpst -u etcd:etcd etcd
+exec chpst -u etcd:etcd etcd 2>&1
diff --git a/srcpkgs/etcd/template b/srcpkgs/etcd/template
index b255d53874f7..fbf8e4c4a5cb 100644
--- a/srcpkgs/etcd/template
+++ b/srcpkgs/etcd/template
@@ -1,7 +1,7 @@
 # Template file for 'etcd'
 pkgname=etcd
 version=3.4.4
-revision=2
+revision=3
 build_style=go
 go_import_path="github.com/coreos/etcd"
 go_package="${go_import_path} ${go_import_path}/etcdctl"

From f7bac14c9bc95611acaeb5151d4d003f1c6daa0e Mon Sep 17 00:00:00 2001
From: mobinmob <mobinmob@disroot.org>
Date: Thu, 3 Feb 2022 22:24:35 +0200
Subject: [PATCH 4/9] cntlm: add log service.

---
 srcpkgs/cntlm/files/cntlm/log/run | 1 +
 srcpkgs/cntlm/template            | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
 create mode 120000 srcpkgs/cntlm/files/cntlm/log/run

diff --git a/srcpkgs/cntlm/files/cntlm/log/run b/srcpkgs/cntlm/files/cntlm/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/cntlm/files/cntlm/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/cntlm/template b/srcpkgs/cntlm/template
index 50da46505715..351bd94a07ab 100644
--- a/srcpkgs/cntlm/template
+++ b/srcpkgs/cntlm/template
@@ -1,7 +1,7 @@
 # Template file for 'cntlm'
 pkgname=cntlm
 version=0.92.3
-revision=6
+revision=7
 build_style=gnu-configure
 hostmakedepends="which"
 short_desc="NTLM / NTLM Session Response / NTLMv2 authenticating HTTP proxy"

From 01fffc0c1551d73fd73b7f9ab8ecdcd1911a1beb Mon Sep 17 00:00:00 2001
From: mobinmob <mobinmob@disroot.org>
Date: Sat, 5 Feb 2022 11:40:06 +0200
Subject: [PATCH 5/9] caddy: redirect stderr to the log service.

---
 srcpkgs/caddy/files/caddy/run | 2 +-
 srcpkgs/caddy/template        | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/caddy/files/caddy/run b/srcpkgs/caddy/files/caddy/run
index c8670fa67b69..36559e4af079 100644
--- a/srcpkgs/caddy/files/caddy/run
+++ b/srcpkgs/caddy/files/caddy/run
@@ -5,4 +5,4 @@
 export HOME=/var/lib/caddy
 ulimit -n ${MAX_OPEN_FILES:-8192}
 
-exec chpst -u caddy caddy run --config ${CONFFILE:-/etc/caddy/Caddyfile}
+exec chpst -u caddy caddy run --config ${CONFFILE:-/etc/caddy/Caddyfile} 2>&1
diff --git a/srcpkgs/caddy/template b/srcpkgs/caddy/template
index 762a36749b46..90057a7f8990 100644
--- a/srcpkgs/caddy/template
+++ b/srcpkgs/caddy/template
@@ -1,7 +1,7 @@
 # Template file for 'caddy'
 pkgname=caddy
 version=2.4.6
-revision=2
+revision=3
 build_style=go
 go_import_path=github.com/caddyserver/caddy/v2
 go_package="${go_import_path}/cmd/caddy"

From a5101d7ee5ac9c44327e2ea2bdc8fa67123ccc01 Mon Sep 17 00:00:00 2001
From: mobinmob <mobinmob@disroot.org>
Date: Sat, 5 Feb 2022 11:54:47 +0200
Subject: [PATCH 6/9] gitea: add log service.

---
 srcpkgs/gitea/files/gitea/log/run | 1 +
 srcpkgs/gitea/files/gitea/run     | 2 +-
 srcpkgs/gitea/template            | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)
 create mode 120000 srcpkgs/gitea/files/gitea/log/run

diff --git a/srcpkgs/gitea/files/gitea/log/run b/srcpkgs/gitea/files/gitea/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/gitea/files/gitea/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/gitea/files/gitea/run b/srcpkgs/gitea/files/gitea/run
index 591e977e729f..a8b6ff44cc3a 100755
--- a/srcpkgs/gitea/files/gitea/run
+++ b/srcpkgs/gitea/files/gitea/run
@@ -6,4 +6,4 @@ cd /var/lib/gitea
 # The USER variable is needed here because gitea doesn't actually
 # check what user its running as, it instead grabs the USER variable
 # from the environment.  HOME is set for the same reasons.
-USER=_gitea HOME=/var/lib/gitea GITEA_WORK_DIR=$HOME exec chpst -u _gitea:_gitea gitea web --config /etc/gitea.conf
+USER=_gitea HOME=/var/lib/gitea GITEA_WORK_DIR=$HOME exec chpst -u _gitea:_gitea gitea web --config /etc/gitea.conf 2>&1 
diff --git a/srcpkgs/gitea/template b/srcpkgs/gitea/template
index 2d998594cc15..d87acc950ce7 100644
--- a/srcpkgs/gitea/template
+++ b/srcpkgs/gitea/template
@@ -1,7 +1,7 @@
 # Template file for 'gitea'
 pkgname=gitea
 version=1.15.8
-revision=1
+revision=2
 create_wrksrc=yes
 build_style=go
 go_import_path=code.gitea.io/gitea

From 3bc0c36d956c2c3c6d0a8ea151b05dbaecf63fd0 Mon Sep 17 00:00:00 2001
From: mobinmob <mobinmob@disroot.org>
Date: Sat, 5 Feb 2022 15:59:58 +0200
Subject: [PATCH 7/9] monkey: add log service.

Also:
- add redirection to the service script
- remove the pid configuration option,
as it contributes to a wrong conf file.
---
 srcpkgs/monkey/files/monkey/log/run | 1 +
 srcpkgs/monkey/files/monkey/run     | 1 +
 srcpkgs/monkey/template             | 4 ++--
 3 files changed, 4 insertions(+), 2 deletions(-)
 create mode 120000 srcpkgs/monkey/files/monkey/log/run

diff --git a/srcpkgs/monkey/files/monkey/log/run b/srcpkgs/monkey/files/monkey/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/monkey/files/monkey/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/monkey/files/monkey/run b/srcpkgs/monkey/files/monkey/run
index 95dad012d94d..370656800d40 100644
--- a/srcpkgs/monkey/files/monkey/run
+++ b/srcpkgs/monkey/files/monkey/run
@@ -1,2 +1,3 @@
 #!/bin/sh
+2>&1
 exec monkey
diff --git a/srcpkgs/monkey/template b/srcpkgs/monkey/template
index 4037c1815258..5280a83e1006 100644
--- a/srcpkgs/monkey/template
+++ b/srcpkgs/monkey/template
@@ -1,13 +1,13 @@
 # Template file for 'monkey'
 pkgname=monkey
 version=1.6.9
-revision=4
+revision=5
 build_style=configure
 configure_args="--prefix=/usr --sbindir=/usr/bin
  --libdir=/usr/lib$XBPS_TARGET_WORDSIZE/$pkgname
  --sysconfdir=/etc/monkey/ --enable-plugins=mbedtls --malloc-libc
  --webroot=/srv/www/$pkgname --mandir=/usr/share/man --default-user=_monkey
- --pidfile=/var/run/monkey.pid --logdir=/var/log/monkey"
+ --logdir=/var/log/monkey"
 hostmakedepends="cmake"
 makedepends="mbedtls-devel"
 short_desc="Cross-arch embeddable lightweight HTTP server"

From 3d984ad3c76ce54779bdc72331af396f4d3f32fd Mon Sep 17 00:00:00 2001
From: mobinmob <mobinmob@disroot.org>
Date: Sat, 5 Feb 2022 16:04:24 +0200
Subject: [PATCH 8/9] thermald: add log service, fix logging.

Also:
- fix xlint warnings.
---
 srcpkgs/thermald/files/thermald/log/run | 1 +
 srcpkgs/thermald/files/thermald/run     | 2 +-
 srcpkgs/thermald/template               | 7 +++----
 3 files changed, 5 insertions(+), 5 deletions(-)
 create mode 120000 srcpkgs/thermald/files/thermald/log/run

diff --git a/srcpkgs/thermald/files/thermald/log/run b/srcpkgs/thermald/files/thermald/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/thermald/files/thermald/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/thermald/files/thermald/run b/srcpkgs/thermald/files/thermald/run
index 4df7dd4eeb23..de5b6d5c3e1e 100644
--- a/srcpkgs/thermald/files/thermald/run
+++ b/srcpkgs/thermald/files/thermald/run
@@ -1,3 +1,3 @@
 #!/bin/sh
 sv check dbus >/dev/null || exit 1
-exec thermald --no-daemon --dbus-enable 1>&2
+exec thermald --no-daemon --dbus-enable 2>&1
diff --git a/srcpkgs/thermald/template b/srcpkgs/thermald/template
index 75a7fc0ce87d..f5d344264e4a 100644
--- a/srcpkgs/thermald/template
+++ b/srcpkgs/thermald/template
@@ -1,17 +1,16 @@
 # Template file for 'thermald'
 pkgname=thermald
 version=2.4.6
-revision=1
-_pkgname=thermal_daemon
+revision=2
 archs="i686* x86_64*"
-wrksrc="${_pkgname}-${version}"
+wrksrc="thermal_daemon-${version}"
 build_style=gnu-configure
 hostmakedepends="automake pkg-config glib-devel gtk-doc autoconf-archive"
 makedepends="dbus-glib-devel libxml2-devel libglib-devel libgomp-devel upower-devel libevdev-devel"
 short_desc="Linux Thermal Daemon program from 01.org"
 maintainer="Andrea Brancaleoni <abc@pompel.me>"
 license="GPL-2.0-or-later"
-homepage="https://github.com/intel/${_pkgname}"
+homepage="https://github.com/intel/thermal_daemon"
 distfiles="${homepage}/archive/v${version}.tar.gz"
 checksum=80c92902a89b72a9df85c51a8b5fc472cc01b4410600ef1f56d62c4ac23890c1
 conf_files='/etc/thermald/*'

From 0994873bc989dbf26741f937e0ffcf3c664279cf Mon Sep 17 00:00:00 2001
From: mobinmob <mobinmob@disroot.org>
Date: Sat, 5 Feb 2022 22:29:25 +0200
Subject: [PATCH 9/9] gnunet:add log service.

---
 srcpkgs/gnunet/files/gnunet/log/run | 1 +
 srcpkgs/gnunet/files/gnunet/run     | 2 +-
 srcpkgs/gnunet/template             | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)
 create mode 120000 srcpkgs/gnunet/files/gnunet/log/run

diff --git a/srcpkgs/gnunet/files/gnunet/log/run b/srcpkgs/gnunet/files/gnunet/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/gnunet/files/gnunet/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/gnunet/files/gnunet/run b/srcpkgs/gnunet/files/gnunet/run
index 4adb83a4d027..467768f40817 100644
--- a/srcpkgs/gnunet/files/gnunet/run
+++ b/srcpkgs/gnunet/files/gnunet/run
@@ -1,2 +1,2 @@
 #!/bin/sh
-/usr/lib/gnunet/libexec/gnunet-service-arm -c /etc/gnunet/gnunet.conf
+/usr/lib/gnunet/libexec/gnunet-service-arm -c /etc/gnunet/gnunet.conf 2>&1
diff --git a/srcpkgs/gnunet/template b/srcpkgs/gnunet/template
index a8a6dabe66ba..164d7f54cfd1 100644
--- a/srcpkgs/gnunet/template
+++ b/srcpkgs/gnunet/template
@@ -1,7 +1,7 @@
 # Template file for 'gnunet'
 pkgname=gnunet
 version=0.12.2
-revision=4
+revision=5
 build_style=gnu-configure
 conf_files="/etc/gnunet/gnunet.conf"
 hostmakedepends="automake gettext gettext-devel libtool pkg-config tar texinfo"

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

* Re: [PR PATCH] [Closed]: services fixes - enhancements
  2022-02-03 19:50 [PR PATCH] [wip] services fixes - enhancements mobinmob
                   ` (13 preceding siblings ...)
  2022-02-05 20:31 ` mobinmob
@ 2022-05-28 11:28 ` mobinmob
  14 siblings, 0 replies; 16+ messages in thread
From: mobinmob @ 2022-05-28 11:28 UTC (permalink / raw)
  To: ml

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

There's a closed pull request on the void-packages repository

services fixes - enhancements
https://github.com/void-linux/void-packages/pull/35384

Description:
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**
<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please [skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration)
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!-- 
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


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

end of thread, other threads:[~2022-05-28 11:28 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-03 19:50 [PR PATCH] [wip] services fixes - enhancements mobinmob
2022-02-03 19:56 ` mobinmob
2022-02-03 20:01 ` [PR PATCH] [Updated] " mobinmob
2022-02-03 20:02 ` mobinmob
2022-02-03 20:09 ` [PR PATCH] [Updated] " mobinmob
2022-02-03 20:19 ` mobinmob
2022-02-03 20:25 ` mobinmob
2022-02-05  9:41 ` mobinmob
2022-02-05 10:04 ` mobinmob
2022-02-05 10:56 ` mobinmob
2022-02-05 11:34 ` mobinmob
2022-02-05 14:05 ` mobinmob
2022-02-05 14:54 ` mobinmob
2022-02-05 20:30 ` [PR PATCH] [Updated] " mobinmob
2022-02-05 20:31 ` mobinmob
2022-05-28 11:28 ` [PR PATCH] [Closed]: " mobinmob

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).