Systemd Targets
In systemd, the System V init concept of runlevels is replaced by the concept of targets. In a service file, e.g. bluetooth.service, in the install section, there will be a line like
WantedBy= multi-user.target This means that when the target, multi-user, becomes active, the service, bluetooth in my example, will be started. I am writing a program which needs to list every service's target. So I am trying to program finding it. Of course, my program could go to the /lib/systemd/system directory and parsing bluetooth.service to get the target, but is there some command I could give that would simply print out the target for a given service? |
Short answer: no
Quote:
|
Thanks for trying.
|
All times are GMT -5. The time now is 03:08 AM. |