I am using Webmin to administer a DietPi system being used as a headless Squeezelite Logitech Media Server client.
At this system's terminal I can invoke"systemctl daemon-reload && dietpi-services restart" to restart all the systems services. The ("chained" i.e. with &&) commands work without incident.
When I put the same commands (i.e. "systemctl daemon-reload && dietpi-services restart" -- without quotes, of course) into a new Webmin Custom Command, I get the following error:
Output from systemctl daemon-reload && dietpi-services restart ..
/bin/sh: 1: dietpi-services: not found
I allow, of course, that this is some stupid user error, but tickets for "support requests" seem to be turned off.
Thanks in advance.
Maybe
dietpi-servicesisn't in Webmin's search path? You should try using the full path to this command instead.