Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] consul: add service
@ 2023-05-23  7:11 altosys
  2023-05-23  7:12 ` [PR PATCH] [Updated] " altosys
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: altosys @ 2023-05-23  7:11 UTC (permalink / raw)
  To: ml

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

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

https://github.com/altosys/void-packages consul-add-service
https://github.com/void-linux/void-packages/pull/44037

consul: add service
This adds a bundled service file to the consul package, similar to [nomad](https://github.com/void-linux/void-packages/tree/master/srcpkgs/nomad).

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

@iaroki 

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

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

From 11c878f416ed641689d5b7fd2d54b5515f198df2 Mon Sep 17 00:00:00 2001
From: Tommy Alatalo <tommy.alatalo@gmail.com>
Date: Tue, 23 May 2023 09:01:19 +0200
Subject: [PATCH] consul: add service

---
 srcpkgs/consul/files/consul/run | 4 ++++
 srcpkgs/consul/template         | 1 +
 2 files changed, 5 insertions(+)
 create mode 100644 srcpkgs/consul/files/consul/run

diff --git a/srcpkgs/consul/files/consul/run b/srcpkgs/consul/files/consul/run
new file mode 100644
index 000000000000..ece1efba0ce4
--- /dev/null
+++ b/srcpkgs/consul/files/consul/run
@@ -0,0 +1,4 @@
+#!/bin/sh
+[ -r conf ] && . ./conf
+exec 2>&1
+exec consul agent -config-dir=/etc/consul.d
diff --git a/srcpkgs/consul/template b/srcpkgs/consul/template
index ed5683591ac2..ea5e565a2e66 100644
--- a/srcpkgs/consul/template
+++ b/srcpkgs/consul/template
@@ -15,4 +15,5 @@ checksum=3f5f698aad0343642949d1c442e6e8bbcd835e3c173e4ee8ebb087758d1e31a4
 
 post_install() {
 	vlicense LICENSE
+  vsv consul
 }

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

end of thread, other threads:[~2023-05-25  2:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-23  7:11 [PR PATCH] consul: add service altosys
2023-05-23  7:12 ` [PR PATCH] [Updated] " altosys
2023-05-23  7:15 ` altosys
2023-05-24 18:28 ` [PR REVIEW] " Vaelatern
2023-05-24 19:16 ` altosys
2023-05-25  2:34 ` [PR PATCH] [Merged]: " Vaelatern
2023-05-25  2:34 ` [PR REVIEW] " Vaelatern

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