Remove unused services, fix Mastodon glitch-soc
This commit is contained in:
parent
ecb4fee59b
commit
566053675e
1 changed files with 1 additions and 10 deletions
11
soscmd-stats
11
soscmd-stats
|
@ -43,7 +43,7 @@ export "DISK_USED=$(df -h|grep '/dev/mapper/cryptlvm'|head -1|awk '{printf $3}')
|
|||
export "DISK_TOTAL=$(df -h|grep '/dev/mapper/cryptlvm'|head -1|awk '{printf $2}')"
|
||||
echo -e "${LINEREP}${COLOR_PURPLE}:: Computing running services${LINESPACE}"
|
||||
export "SERVICES_MASTODON_PUMA=$(ps -eo args|grep puma|grep "\\[live\\]"&>/dev/null;echo $?)"
|
||||
export "SERVICES_MASTODON_STREAMING=$(ps -eo args|grep node|grep mastodon&>/dev/null;echo $?)"
|
||||
export "SERVICES_MASTODON_STREAMING=$(ps -eo args|grep node|grep streaming&>/dev/null;echo $?)"
|
||||
export "SERVICES_MASTODON_SIDEKIQ=$(ps -eo args|grep sidekiq|grep ' live '&>/dev/null;echo $?)"
|
||||
export "SERVICES_HTTPD=$(ps -eo args|grep httpd|grep ' -k '&>/dev/null;echo $?)"
|
||||
export "SERVICES_DOCKER=$(ps -eo args|grep dockerd|grep '\--containerd'&>/dev/null;echo $?)"
|
||||
|
@ -52,12 +52,9 @@ export "SERVICES_PHP82=$(ps -eo args|grep php-fpm|grep php82&>/dev/null;echo $?)
|
|||
export "SERVICES_PHP81=$(ps -eo args|grep php-fpm|grep php81&>/dev/null;echo $?)"
|
||||
export "SERVICES_PHP74=$(ps -eo args|grep php-fpm|grep php74&>/dev/null;echo $?)"
|
||||
export "SERVICES_FAIL2BAN=$(ps -eo args|grep fail2ban-server|grep python3&>/dev/null;echo $?)"
|
||||
export "SERVICES_PARTYSHARE=$(ps -eo args|grep partyshare|grep python3&>/dev/null;echo $?)"
|
||||
export "SERVICES_FORGEJO=$(ps -eo args|grep forgejo|grep 'web -c'&>/dev/null;echo $?)"
|
||||
export "SERVICES_FEDIRELAY=$(ps -eo args|grep activityrelay|grep python&>/dev/null;echo $?)"
|
||||
export "SERVICES_TRACCAR=$(ps -eo args|grep traccar|grep java&>/dev/null;echo $?)"
|
||||
export "SERVICES_SOSSCHEDULE=$(ps -eo args|grep sosschedule|grep bash&>/dev/null;echo $?)"
|
||||
export "SERVICES_SYNCTHING=$(ps -eo args|grep syncthing|grep serve&>/dev/null;echo $?)"
|
||||
export "SERVICES_WINGS=$(ps -eo args|grep wings|grep '/usr/local/bin'&>/dev/null;echo $?)"
|
||||
export "SERVICES_PTEROQ=$(ps -eo args|grep 'artisan queue:work'|grep php&>/dev/null;echo $?)"
|
||||
export "SERVICES_UPTIMEKUMA=$(docker ps|grep uptime-kuma&>/dev/null;echo $?)"
|
||||
|
@ -75,12 +72,9 @@ export "SERVICES_PHP82=$(isonline $SERVICES_PHP82)"
|
|||
export "SERVICES_PHP81=$(isonline $SERVICES_PHP81)"
|
||||
export "SERVICES_PHP74=$(isonline $SERVICES_PHP74)"
|
||||
export "SERVICES_FAIL2BAN=$(isonline $SERVICES_FAIL2BAN)"
|
||||
export "SERVICES_PARTYSHARE=$(isonline $SERVICES_PARTYSHARE)"
|
||||
export "SERVICES_FORGEJO=$(isonline $SERVICES_FORGEJO)"
|
||||
export "SERVICES_FEDIRELAY=$(isonline $SERVICES_FEDIRELAY)"
|
||||
export "SERVICES_TRACCAR=$(isonline $SERVICES_TRACCAR)"
|
||||
export "SERVICES_SOSSCHEDULE=$(isonline $SERVICES_SOSSCHEDULE)"
|
||||
export "SERVICES_SYNCTHING=$(isonline $SERVICES_SYNCTHING)"
|
||||
export "SERVICES_WINGS=$(isonline $SERVICES_WINGS)"
|
||||
export "SERVICES_PTEROQ=$(isonline $SERVICES_PTEROQ)"
|
||||
export "SERVICES_UPTIMEKUMA=$(isonline $SERVICES_UPTIMEKUMA)"
|
||||
|
@ -104,7 +98,6 @@ echo -e "${COLOR_RESET} Free ${COLOR_YELLOW}${DISK_FREE}iB"
|
|||
echo -e "${COLOR_RESET}${COLOR_BLUE}Services:${COLOR_RESET} $SERVICES_DOCKER Docker"
|
||||
echo -e "${COLOR_RESET} $SERVICES_FAIL2BAN fail2ban"
|
||||
echo -e "${COLOR_RESET} $SERVICES_SOSSCHEDULE sosschedule"
|
||||
echo -e "${COLOR_RESET} $SERVICES_SYNCTHING Syncthing"
|
||||
echo -e "${COLOR_RESET} $SERVICES_MARIADB MariaDB"
|
||||
echo -e "${COLOR_RESET} $SERVICES_POSTGRES PostgreSQL"
|
||||
echo -e "${COLOR_RESET} $SERVICES_PHP82 PHP82 FPM"
|
||||
|
@ -120,6 +113,4 @@ echo -e "${COLOR_RESET} $SERVICES_FORGEJO Forgejo"
|
|||
echo -e "${COLOR_RESET} $SERVICES_MASTODON_PUMA Mastodon (Puma)"
|
||||
echo -e "${COLOR_RESET} $SERVICES_MASTODON_STREAMING Mastodon (Streaming)"
|
||||
echo -e "${COLOR_RESET} $SERVICES_MASTODON_SIDEKIQ Mastodon (Sidekiq)"
|
||||
echo -e "${COLOR_RESET} $SERVICES_FEDIRELAY FediRelay"
|
||||
echo -e "${COLOR_RESET} $SERVICES_PARTYSHARE Partyshare"
|
||||
echo -e "${COLOR_RESET} $SERVICES_TRACCAR Traccar"
|
||||
|
|
Loading…
Reference in a new issue