Создал(а) 'start.sh'
This commit is contained in:
parent
81809d9f7e
commit
4b97ea4886
17
start.sh
Normal file
17
start.sh
Normal file
@ -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
|
||||
Loading…
x
Reference in New Issue
Block a user