From 7e51b88785ecde452ffc29445a78492e5a11710e Mon Sep 17 00:00:00 2001 From: erg Date: Tue, 28 Feb 2023 20:09:47 +0100 Subject: Completely revorked --- shroom_daemon.sh | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 shroom_daemon.sh (limited to 'shroom_daemon.sh') diff --git a/shroom_daemon.sh b/shroom_daemon.sh deleted file mode 100644 index adf6712..0000000 --- a/shroom_daemon.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/sbin/openrc-run -# Copyright 2023 erg_samowzbudnik -# Distributed under the terms of the GNU General Public Licence v2 - -GROUP=$(id -g) -supervisor="supervise-daemon" -command_args_foreground="--foreground" -# Could also get dir to store pid file from XDG_RUNTIME_DIR -pidfile="/run/user/${UID}/${RC_SVCNAME}.pid" -extra_started_commands="reload" -command_user="${USER}:${GROUP}" -command="python main.py" -description="Daemon for shroombox" - -depend() { - need localmount - use logger -} - -reload() { - ebegin "Reloading ${RC_SVCNAME}configuration" - start-stop-daemon --exec $command --signal HUP - ${supervisor} ${RC_SVCNAME} --signal HUP --pidfile "${pidfile}" - eend $? -} -- cgit v1.2.3-65-gdbad