May 1, 2025 update

This commit is contained in:
Sharad Ahlawat
2025-05-01 21:19:17 -07:00
parent a2cdf26594
commit b33d54d723
261 changed files with 2451 additions and 12859 deletions

View File

@ -19,8 +19,8 @@
name=cpsserver
rcvar=${name}_enable
#CPSSERVER="nohup /usr/local/bin/python3.9 /data/calibre-web/cps.py"
CPSSERVER="nohup /usr/local/bin/cps"
CPSSERVER="nohup /usr/local/bin/python3.9 /data/calibre-web/cps.py"
#CPSSERVER="nohup /usr/local/bin/cps"
start_cmd="${name}_start"
stop_cmd="${name}_stop"
@ -31,11 +31,15 @@ cpsserver_start()
$CPSSERVER -p /data/big/app.db -g /data/big/gdrive.db &
$CPSSERVER -p /data/fiction/app.db -g /data/fiction/gdrive.db &
$CPSSERVER -p /data/movie/app.db -g /data/movie/gdrive.db &
$CPSSERVER -p /data/art/app.db -g /data/art/gdrive.db &
$CPSSERVER -p /data/home/app.db -g /data/home/gdrive.db &
$CPSSERVER -p /data/general/app.db -g /data/general/gdrive.db &
}
cpsserver_stop()
{
ps ax | grep -ie cps.py | grep -v grep | awk '{print $1}' | xargs kill -9
# ps ax | grep -ie cps | grep -v grep | awk '{print $1}' | xargs kill -9
}
cpsserver_restart()
{