[no ci] Sysupgrade: add date check for majestic version

pull/1196/head
Viktor 2023-12-14 11:22:54 +01:00
parent 4ff46e4d4f
commit 9fe492936e
1 changed files with 7 additions and 2 deletions

View File

@ -3,7 +3,7 @@
# OpenIPC.org | v.20231202 # OpenIPC.org | v.20231202
# #
scr_version=1.0.24 scr_version=1.0.25
args=" $@" args=" $@"
@ -103,7 +103,12 @@ free_resources() {
# "load_$vendor" -r >/dev/null 2>&1 || true # "load_$vendor" -r >/dev/null 2>&1 || true
# #
echo_c 37 "\nStop services, sync files, free up memory" echo_c 37 "\nStop services, sync files, free up memory"
killall -SIGUSR2 majestic
echo -n "Killing majestic ... "
time=$(grep TIME_STAMP /etc/os-release | cut -d= -f2)
[ "$time" -gt "1702544400" ] && killall -SIGUSR2 majestic || killall majestic
echo "OK"
for proc in crond klogd ntpd rngd syslogd; do for proc in crond klogd ntpd rngd syslogd; do
echo -n "Killing $proc " echo -n "Killing $proc "
while [ -n "$(pidof $proc)" ]; do while [ -n "$(pidof $proc)" ]; do