Commit Graph

2 Commits

Author SHA1 Message Date
mooncake 6d9fdab145 Fix typos issues
Signed-off-by: mooncake <xcoder@tenxcloud.com>
2018-10-07 10:11:54 +08:00
Matt Dougherty cc716e3c05 Update hooks to allow all systemd unit file extensions
Previously the hook system would only allow extensions of ".service"
and ".timer". Any other name would have ".service" appended.

Now the hook system allows any suffix listed at
https://www.freedesktop.org/software/systemd/man/systemd.unit.html.
If no suffix is found, ".service" is still added to preserve backwards-
compatibility.

Note that backwards-compatibility may still break for users relying on
the previous behavior in odd ways. For example, a hook with name
"my-hook.slice" would previously have been installed as
"my-hook.slice.service", but it will now be installed as "my-hook.slice",
since ".slice" is a valid systemd unit file extension.
2018-05-16 09:26:17 -07:00