pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

exabgp4: Fix /var/run/exabgp before starting



Module Name:	pkgsrc-wip
Committed By:	Jørn Åne de Jong <jorn.dejong%uninett.no@localhost>
Pushed By:	jornane
Date:		Thu Mar 18 16:28:09 2021 +0100
Changeset:	5e439f23ff850e0ee6cf8e002488c56f59e2b56e

Modified Files:
	exabgp4/files/exabgp.sh

Log Message:
exabgp4: Fix /var/run/exabgp before starting

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=5e439f23ff850e0ee6cf8e002488c56f59e2b56e

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 exabgp4/files/exabgp.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diffs:
diff --git a/exabgp4/files/exabgp.sh b/exabgp4/files/exabgp.sh
index 5566b8949a..cfa8fc0fbd 100644
--- a/exabgp4/files/exabgp.sh
+++ b/exabgp4/files/exabgp.sh
@@ -17,9 +17,10 @@ pidfile="/var/run/${name}/${name}.pid"
 command_interpreter="@PYTHONBIN@"
 
 makepipe() {
+	mkdir -p /var/run/exabgp/
 	test -p /var/run/exabgp/exabgp.in || mkfifo /var/run/exabgp/exabgp.in
 	test -p /var/run/exabgp/exabgp.out || mkfifo /var/run/exabgp/exabgp.out
-	chown nobody /var/run/exabgp/exabgp.in /var/run/exabgp/exabgp.out
+	chown -RPh nobody /var/run/exabgp
 	chmod 600 /var/run/exabgp/exabgp.in /var/run/exabgp/exabgp.out
 }
 


Home | Main Index | Thread Index | Old Index