Fix cron on planet
Fix issues with cron and log planet Change-Id: Id7a8371776049396337d8ca0f9d3665453c65bbb
This commit is contained in:
parent
1e1708c736
commit
b7331f88f3
@ -16,6 +16,10 @@ class planet {
|
|||||||
ensure => directory
|
ensure => directory
|
||||||
}
|
}
|
||||||
|
|
||||||
|
file { '/var/log/planet':
|
||||||
|
ensure => directory
|
||||||
|
}
|
||||||
|
|
||||||
service { 'nginx':
|
service { 'nginx':
|
||||||
ensure => running,
|
ensure => running,
|
||||||
hasrestart => true
|
hasrestart => true
|
||||||
|
@ -32,8 +32,8 @@ define planet::site($git_url) {
|
|||||||
|
|
||||||
cron { "update_planet_${name}":
|
cron { "update_planet_${name}":
|
||||||
user => root,
|
user => root,
|
||||||
minute => 3,
|
minute => "*/5",
|
||||||
command => "planet /var/lib/planet/${name}.ini"
|
command => "cd /var/lib/planet/${name} && planet /var/lib/planet/${name}/planet.ini > /var/log/planet/${name}.log 2>&1"
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user