You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[root@host]# ls -lart /bin/ps lrwxrwxrwx 1 root root 25 Feb 25 17:33 /bin/ps -> /usr/libexec/ps-procps-ng
If procps-ng-ps is installed, the busybox ps is replaced with /usr/libexec/ps-procps-ng
As a result, the stop_section_processes routine in dynamic_dns_functions.sh does not work correctly because of the line 213 ps | grep "^[\t ]*$__PID" >/dev/null 2>&1 && kill $__PID || __PID=0 # terminate it
Should be replaced with busybox ps | grep "^[\t ]*$__PID" >/dev/null 2>&1 && kill $__PID || __PID=0 # terminate it
The text was updated successfully, but these errors were encountered:
escot
changed the title
ddns-scripts: stop/restart service does not work if procps-ng-ps package is installed
ddns-scripts: "service ddns stop" , "service ddns restart" do not work if procps-ng-ps package is installed
Feb 27, 2025
[root@host]# opkg list-installed | grep procps-ng-ps
procps-ng-ps - 4.0.4-r1
[root@host]# ps --version
ps from procps-ng 4.0.4
[root@host]# ls -lart /bin/ps
lrwxrwxrwx 1 root root 25 Feb 25 17:33 /bin/ps -> /usr/libexec/ps-procps-ng
If procps-ng-ps is installed, the busybox ps is replaced with /usr/libexec/ps-procps-ng
As a result, the stop_section_processes routine in dynamic_dns_functions.sh does not work correctly because of the line 213
ps | grep "^[\t ]*$__PID" >/dev/null 2>&1 && kill $__PID || __PID=0 # terminate it
Should be replaced with
busybox ps | grep "^[\t ]*$__PID" >/dev/null 2>&1 && kill $__PID || __PID=0 # terminate it
The text was updated successfully, but these errors were encountered: