Revision e48c3613
b/.gitignore | ||
---|---|---|
66 | 66 |
/doc/examples/bash_completion-debug |
67 | 67 |
/doc/examples/ganeti.cron |
68 | 68 |
/doc/examples/ganeti.initd |
69 |
/doc/examples/ganeti.logrotate |
|
69 | 70 |
/doc/examples/ganeti-kvm-poweroff.initd |
70 | 71 |
/doc/examples/ganeti-master-role.ocf |
71 | 72 |
/doc/examples/ganeti-node-role.ocf |
b/Makefile.am | ||
---|---|---|
226 | 226 |
doc/examples/ganeti-kvm-poweroff.initd \ |
227 | 227 |
doc/examples/ganeti.cron \ |
228 | 228 |
doc/examples/ganeti.initd \ |
229 |
doc/examples/ganeti.logrotate \ |
|
229 | 230 |
doc/examples/ganeti-master-role.ocf \ |
230 | 231 |
doc/examples/ganeti-node-role.ocf \ |
231 | 232 |
doc/examples/gnt-config-backup \ |
b/devel/upload | ||
---|---|---|
100 | 100 |
install -D --mode=0755 doc/examples/ganeti.initd \ |
101 | 101 |
"$TXD/$SYSCONFDIR/init.d/ganeti" |
102 | 102 |
|
103 |
[ -f doc/examples/ganeti.logrotate ] && \ |
|
104 |
install -D --mode=0755 doc/examples/ganeti.logrotate \ |
|
105 |
"$TXD/$SYSCONFDIR/logrotate.d/ganeti" |
|
106 |
|
|
103 | 107 |
[ -f doc/examples/ganeti-master-role.ocf ] && \ |
104 | 108 |
install -D --mode=0755 doc/examples/ganeti-master-role.ocf \ |
105 | 109 |
"$TXD/$LIBDIR/ocf/resource.d/ganeti/ganeti-master-role" |
b/doc/examples/ganeti.logrotate.in | ||
---|---|---|
1 |
/var/log/ganeti/*.log { |
|
2 |
weekly |
|
3 |
missingok |
|
4 |
rotate 52 |
|
5 |
notifempty |
|
6 |
compress |
|
7 |
delaycompress |
|
8 |
create 640 root root |
|
9 |
sharedscripts |
|
10 |
postrotate |
|
11 |
@PKGLIBDIR@/daemon-util rotate-all-logs |
|
12 |
endscript |
|
13 |
} |
b/doc/install.rst | ||
---|---|---|
566 | 566 |
In order to automatically restart failed instances, you need to setup a |
567 | 567 |
cron job run the *ganeti-watcher* command. A sample cron file is |
568 | 568 |
provided in the source at ``doc/examples/ganeti.cron`` and you can copy |
569 |
that (eventually altering the path) to ``/etc/cron.d/ganeti``. |
|
569 |
that (eventually altering the path) to ``/etc/cron.d/ganeti``. Finally, |
|
570 |
a sample logrotate snippet is provided in the source at |
|
571 |
``doc/examples/ganeti.logrotate`` and you can copy it to |
|
572 |
``/etc/logrotate.d/ganeti`` to have Ganeti's logs rotated automatically. |
|
570 | 573 |
|
571 | 574 |
What gets installed |
572 | 575 |
~~~~~~~~~~~~~~~~~~~ |
Also available in: Unified diff