mirror of
https://github.com/krislamo/puppet-rsnapshot
synced 2025-09-17 17:19:30 +00:00
add tmpfiles.d config - issue#12
This commit is contained in:
@@ -10,5 +10,14 @@ class rsnapshot::install {
|
||||
ensure => $rsnapshot::package_ensure,
|
||||
}
|
||||
|
||||
# ensure run directory exists (systemd clears /var/run, so rsnapshot can't create PID files after reboot - issue#12)
|
||||
$lockpath = pick($rsnapshot::lockpath, $rsnapshot::params::config_lockpath, '/var/run/rsnapshot')
|
||||
$tmpfiles_d = '/etc/tmpfiles.d'
|
||||
|
||||
file { "${tmpfiles_d}/rsnapshot.conf":
|
||||
ensure => present,
|
||||
content => "D ${lockpath} 0755 root root -",
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user