summaryrefslogtreecommitdiff
path: root/sci-libs/indilib/files/indiserver.sh
diff options
context:
space:
mode:
authorCtibor Brančík <ctibor@brancik.cz>2023-09-21 21:13:39 +0200
committerCtibor Brančík <ctibor@brancik.cz>2023-09-21 21:13:39 +0200
commit2a03937a699aa74eeee8dd801176f0c49e3b8192 (patch)
treec642b63b12ce0f3004998a13521255868f6e9636 /sci-libs/indilib/files/indiserver.sh
parent328af69d7704b707b1c3925034946d52baa66021 (diff)
downloadbrancik-overlay-2a03937a699aa74eeee8dd801176f0c49e3b8192.tar.gz
brancik-overlay-2a03937a699aa74eeee8dd801176f0c49e3b8192.tar.bz2
Remove unmaintained ebuilds for sci-libs/indilib & co.
Diffstat (limited to 'sci-libs/indilib/files/indiserver.sh')
-rw-r--r--sci-libs/indilib/files/indiserver.sh49
1 files changed, 0 insertions, 49 deletions
diff --git a/sci-libs/indilib/files/indiserver.sh b/sci-libs/indilib/files/indiserver.sh
deleted file mode 100644
index 8444109..0000000
--- a/sci-libs/indilib/files/indiserver.sh
+++ /dev/null
@@ -1,49 +0,0 @@
-#!/sbin/openrc-run
-
-if [ ! "${INDISERVER_USER}" ]; then
- INDISERVER_USER="indiserver"
-fi
-
-description="indiserver - INDI astronomical control library server"
-command="/usr/bin/indiserver"
-
-if [ "${INDISERVER_FIFO}" ]; then
- command_args="${INDISERVER_OPTS} -f ${INDISERVER_FIFO} ${INDISERVER_DRIVERS}"
-else
- command_args="${INDISERVER_OPTS} ${INDISERVER_DRIVERS}"
-fi
-
-pidfile="/var/run/indiserver.pid"
-start_stop_daemon_args="--pidfile ${pidfile} --make-pidfile --background --user ${INDISERVER_USER}"
-
-start_pre() {
- IFS=' ' read -ra DRIVER <<< "${INDISERVER_DRIVERS}"
- for file in "${DRIVER[@]}"; do
- if [ ! -x /usr/bin/"${file}" ]; then
- eerror "Driver ${file} not found. Please check configuration file."
- exit 1
- fi
- done
- if [ "${INDISERVER_FIFO}" ]; then
- INDISERVER_OPTS="-f ${INDISERVER_FIFO} ${INDISERVER_OPTS}"
- if [ ! -p "${INDISERVER_FIFO}" ]; then
- if ! /usr/bin/mkfifo ${INDISERVER_FIFO}; then
- eerror "Could not create FIFO file in ${INDISERVER_FIFO}!"
- eerror "indiserver is started with user ${INDISERVER_USER}"
- eerror "Check permissions or unset INDISERVER_FIFO in config."
- exit 1
- fi
- chown indiserver:indiserver ${INDISERVER_FIFO}
- else
- ewarn "Strange. FIFO file ${INDISERVER_FIFO} already exists"
- fi
- fi
- return 0
- }
-
-stop_post() {
- if [ -p "${INDISERVER_FIFO}" ]; then
- rm -rf "${INDISERVER_FIFO}"
- fi
- return 0
- }