I want to set target to service in CentOS7 (Systemd). I want to know following.
- How to set target to service.
- How to show target of service.
In other words, I want to know substitution for following commands.
$ sudo chkconfig --level=2345 mysql on (<- set runlevel)
$ chkconfig --list mysql (<- show runlevel)
I understood that "runlevel" in CentOS6 changed "target" in CentOS7and I should use "systemctl" command.
But problems were not solved.
I heard that following command is replacement for "chkconfig --list" , but I can't check target and can't set target.
systemctl list-unit-files