From 4b97ea488615094ad62426a0a12378e8a47b3209 Mon Sep 17 00:00:00 2001 From: dimon Date: Mon, 19 Dec 2022 20:55:20 +0000 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=BE=D0=B7=D0=B4=D0=B0=D0=BB(=D0=B0)=20?= =?UTF-8?q?'start.sh'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- start.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 start.sh diff --git a/start.sh b/start.sh new file mode 100644 index 0000000..cf7f3b4 --- /dev/null +++ b/start.sh @@ -0,0 +1,17 @@ +#start.sh +#!/bin/bash + +# DAEMONS +for PARAMETERS in movies:58846 music:58847 program:58848 mult:58849 game:58850 series:58852 books:58853 anime:58854 science:58855 +do + USERNAME=$(echo $PARAMETERS | cut -d ":" -f 1) + DAEMON_PORT=$(echo $PARAMETERS | cut -d ":" -f 2) + su $USERNAME + /usr/bin/deluged --fork -p $DAEMON_PORT +done + +# WEB +su deluge +/usr/bin/deluge-web --fork -p 8112 + +/bin/bash \ No newline at end of file