Show list of running tasks from services / init.d in Debian / Ubuntu?
I am currently creating a powersave program that is pretty simple:
Make a list of services / init.d "services" that are running, shut them down via init.d scripts (the proper way) for power save and then (since the list was saved) restart them later again.
I have tried this out and there is a lot of watts to save.
But how can I figure out which init.d services are running currently?
most init.d scripts under Debian / Ubuntu don't offer a status function (running / not running)
Is there a standardized way these services and servers log themselved in some directory so that I can know that they are running?
I can of course see a list of them running with ps, but not from which init.d script they originated.