Debian

$ service --status-all

source

macOS

$ sudo launchctl list

source