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
|
||||
}
|
||||
|
||||
file { '/var/log/planet':
|
||||
ensure => directory
|
||||
}
|
||||
|
||||
service { 'nginx':
|
||||
ensure => running,
|
||||
hasrestart => true
|
||||
|
@ -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"
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user