Fix cron on planet

Fix issues with cron and log planet

Change-Id: Id7a8371776049396337d8ca0f9d3665453c65bbb
This commit is contained in:
Andrew Hutchings 2012-02-03 19:30:45 +00:00
parent f9ad6def56
commit a56778c211
2 changed files with 6 additions and 2 deletions

View File

@ -16,6 +16,10 @@ class planet {
ensure => directory
}
file { '/var/log/planet':
ensure => directory
}
service { 'nginx':
ensure => running,
hasrestart => true

View File

@ -32,8 +32,8 @@ define planet::site($git_url) {
cron { "update_planet_${name}":
user => root,
minute => 3,
command => "planet /var/lib/planet/${name}.ini"
minute => "*/5",
command => "cd /var/lib/planet/${name} && planet /var/lib/planet/${name}/planet.ini > /var/log/planet/${name}.log 2>&1"
}
}