I have tried using --ifexists to run a command with parameters, but it won't accept them.
Things I've tried are encasing the entire command in single and double quotes.
For example rc-service --ifexists caddy echo yes does not work but rc-service --ifexists caddy echo works and prints a blank line.
I have tried using
--ifexiststo run a command with parameters, but it won't accept them.Things I've tried are encasing the entire command in single and double quotes.
For example
rc-service --ifexists caddy echo yesdoes not work butrc-service --ifexists caddy echoworks and prints a blank line.