Introduction
Introduction Statistics Contact Development Disclaimer Help
Fix annna-restart-services for new abstraction model. - annna - Annna the nice …
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6…
Log
Files
Refs
Tags
README
---
commit 1ff9f311fd4d780a7039dba82f29d9a4bd0c8745
parent 86f4d83186809dbdd5317b6e4004eb5751f44363
Author: Annna Robert-Houdin <[email protected]>
Date: Sat, 15 Jan 2022 07:23:18 +0100
Fix annna-restart-services for new abstraction model.
Diffstat:
M annna-start-service | 2 --
A annna-start-services | 21 +++++++++++++++++++++
2 files changed, 21 insertions(+), 2 deletions(-)
---
diff --git a/annna-start-service b/annna-start-service
@@ -12,8 +12,6 @@ server="$1"
channel="$2"
export PATH="$PATH:/home/annna/bin"
-# plan9port
-export PATH="$PATH:/opt/plan9/bin"
cfgbase="$(pwd)"
ircbase="$(cat ${cfgbase}/ircbase)"
diff --git a/annna-start-services b/annna-start-services
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+export PATH="$PATH:/home/annna/bin"
+
+#cfgbase="$(pwd)"
+cfgbase="$HOME/annna"
+touch ${cfgbase}/running
+
+cd ${cfgbase}
+for server in $(find . -maxdepth 1 -type d | tail -n +2 | cut -c 3-);
+do
+ [ ! -f ${server}/autoconnect ] && continue
+
+ channels="$(cat ${server}/channels | tr '\n' ' ')"
+
+ for chan in ${channels};
+ do
+ annna-start-service "${server}" "${chan}"
+ done
+done
+
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.