Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ddns-scripts: "service ddns stop" , "service ddns restart" do not work if procps-ng-ps package is installed #26067

Open
escot opened this issue Feb 27, 2025 · 0 comments

Comments

@escot
Copy link

escot commented 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

@escot 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant