Defined Type: systemd::unmask
- Defined in:
-
modules/systemd/manifests/unmask.pp
Summary
Use 'systemctl unmask $title' to undo the effects of systemctl mask so that
the given unit can be started again.
Overview
10
11
12
13
14
15
16
17
18
19
|
# File 'modules/systemd/manifests/unmask.pp', line 10
define systemd::unmask (
Systemd::Unit::Name $unit = $title,
Boolean $refreshonly = false,
) {
exec { "unmask_${unit}":
command => "/bin/systemctl unmask ${unit}",
onlyif => "/bin/readlink -f /etc/systemd/system/${unit} | grep -q /dev/null",
refreshonly => $refreshonly,
}
}
|