Revision 7172f605 daemons/ganeti-cleaner.in
b/daemons/ganeti-cleaner.in | ||
---|---|---|
1 | 1 |
#!/bin/bash |
2 | 2 |
# |
3 | 3 |
|
4 |
# Copyright (C) 2009 Google Inc. |
|
4 |
# Copyright (C) 2009, 2010 Google Inc.
|
|
5 | 5 |
# |
6 | 6 |
# This program is free software; you can redistribute it and/or modify |
7 | 7 |
# it under the terms of the GNU General Public License as published by |
... | ... | |
45 | 45 |
done |
46 | 46 |
} |
47 | 47 |
|
48 |
DATA_DIR=@LOCALSTATEDIR@/lib/ganeti |
|
49 |
CLEANER_LOG_DIR=@LOCALSTATEDIR@/log/ganeti/cleaner |
|
48 |
# Overridden by unittest |
|
49 |
: ${LOCALSTATEDIR:=@LOCALSTATEDIR@} |
|
50 |
: ${CHECK_CERT_EXPIRED:=@PKGLIBDIR@/check-cert-expired} |
|
51 |
|
|
52 |
DATA_DIR=$LOCALSTATEDIR/lib/ganeti |
|
53 |
CLEANER_LOG_DIR=$LOCALSTATEDIR/log/ganeti/cleaner |
|
50 | 54 |
QUEUE_ARCHIVE_DIR=$DATA_DIR/queue/archive |
51 |
CRYPTO_DIR=@LOCALSTATEDIR@/run/ganeti/crypto |
|
52 |
CHECK_CERT_EXPIRED=@PKGLIBDIR@/check-cert-expired |
|
55 |
CRYPTO_DIR=$LOCALSTATEDIR/run/ganeti/crypto |
|
53 | 56 |
|
54 | 57 |
# Define how many days archived jobs should be left alone |
55 | 58 |
REMOVE_AFTER=21 |
Also available in: Unified diff