From 273f57260449a8247eb1e7ca640dba6af8a90ad2 Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Fri, 18 Nov 2022 17:52:21 +0100 Subject: bin: drop some scripts chrome-extension-dl fs kp mesoninit once open wsudo --- bin/once | 47 ----------------------------------------------- 1 file changed, 47 deletions(-) delete mode 100755 bin/once (limited to 'bin/once') diff --git a/bin/once b/bin/once deleted file mode 100755 index 1655368..0000000 --- a/bin/once +++ /dev/null @@ -1,47 +0,0 @@ -#!/bin/sh - -set -e -[ -n "$DEBUG" ] && set -x - -_check_running= -ssd_args="--background --make-pidfile --start" -while getopts rsKkl:h opt; do - case "$opt" in - K|k) ssd_args='--stop';; - l) ssd_args="${ssd_args} --stdout ${OPTARG} --stderr ${OPTARG}";; - s) _check_running=1 ;; - r) _restart=1 ;; - - h) - printf "usage: %s [-h]\n" "$(basename "$0")" - printf "\n" - printf " -K -k kill the service\n" - printf " -l LOGFILE log to a file\n" - printf "\n" - exit 2 ;; - esac -done -shift $((OPTIND - 1)) - -exec="${1:-}" -[ -z "${exec}" ] && exit 1 -shift - -if [ -n "$_check_running" ] -then - [ -f "${XDG_RUNTIME_DIR}/${exec}.pid" ] && exit 0 - exit 1 -fi - -if [ -n "$_restart" ] -then - set -x - ${0} -k ${exec} ${@} - ${0} ${exec} ${@} - exit 0 -fi - -start-stop-daemon \ - --pidfile "${XDG_RUNTIME_DIR:-/tmp}/${exec}.pid" \ - $ssd_args \ - "${exec}" -- "${@}" -- cgit 1.4.1