I found only one related question, but I don't feel the answer to that question helps me, the answers are too generic and broad.
I'm currently on and learning about Debian 11.3. How do I know which command to use in which case?
I don't know what other information I would need to include for this question. I'll update the question if needed.
case "${ACTION}" in restart|status) exec systemctl $sctl_args ${ACTION} ${UNIT} ;;
i.e.systemctl restart ...
is executed byservice ... restart
. – muru Apr 18 '22 at 18:24