]> code.ossystems Code Review - openembedded-core.git/commit
systemctl: Support all unit types in the directives.
authorRandy Witt <rewitt@declaratino.com>
Fri, 21 Jun 2013 04:12:57 +0000 (00:12 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 25 Jun 2013 16:43:41 +0000 (17:43 +0100)
commit374b9c37b3310cf2a3373633197ca7ba21f6d1bd
tree4b40d3ac672a8c25f31badd8010a479a5ffb2db4
parent7f804ccd2a1e8ccfec1481ef757ce35b6edcbacf
systemctl: Support all unit types in the directives.

The Alias and WantedBy directives can accept all valid unit types when
using the systemctl from systemd. And since the systemctl script should
match the behavior of systemd as much as possible, add the current set
of unit types listed at
http://www.freedesktop.org/software/systemd/man/systemd.unit.html
to the Alias and WantedBy directives.

The deficiency was exposed when trying to use:
    Alias=default.target
in a foo.target. No symlink was created by running
"systemctl enable foo.target" during the package's postinst.

Signed-off-by: Randy Witt <rewitt@declaratino.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/recipes-core/systemd/systemd-systemctl/systemctl