Change Request: database cleanup
Ricky Zhou
ricky at fedoraproject.org
Thu Apr 23 01:55:19 UTC 2009
> diff --git a/manifests/services/db.pp b/manifests/services/db.pp
> index 8e7587f..e5a6409 100644
> --- a/manifests/services/db.pp
> +++ b/manifests/services/db.pp
> @@ -52,6 +52,17 @@ class kojiDb inherits postgresServer {
> source => "system/koji-cleanup-sessions.cron"
> }
>
> + cron { db-cleanup-sessions:
> + command => "/usr/local/bin/db-cleanup-sessions",
> + user => postgres,
> + minute => 10,
> + ensure => present,
> + }
> +
> + script { '/usr/local/bin/db-cleanup-sessions':
> + source => 'db/db-cleanup-sessions',
> + require => Package['postgresql8.3-server'],
> + }
> }
>
> class appDB inherits postgresServer {
+1
Thanks,
Ricky
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
Url : http://lists.fedoraproject.org/pipermail/infrastructure/attachments/20090422/00e128cf/attachment.bin
More information about the infrastructure
mailing list