Revision 26c7e094
b/man/Makefile.am | ||
---|---|---|
3 | 3 |
man_MANS = ganeti.7 ganeti-os-interface.7 gnt-cluster.8 gnt-node.8 gnt-os.8 \ |
4 | 4 |
gnt-instance.8 ganeti-noded.8 ganeti-watcher.8 gnt-backup.8 |
5 | 5 |
|
6 |
maninput = $(patsubst %.7,%.in,$(patsubst %.8,%.in,$(man_MANS))) |
|
7 |
|
|
6 | 8 |
EXTRA_DIST = ganeti-os-interface.sgml gnt-cluster.sgml gnt-node.sgml \ |
7 | 9 |
ganeti-watcher.sgml ganeti.sgml gnt-instance.sgml gnt-os.sgml \ |
8 | 10 |
gnt-backup.sgml ganeti-noded.sgml \ |
9 |
footer.sgml $(man_MANS) |
|
10 |
MAINTAINERCLEANFILES = *.[78] |
|
11 |
footer.sgml $(maninput) |
|
12 |
CLEANFILES = *.[78] |
|
13 |
MAINTAINERCLEANFILES = *.in |
|
14 |
|
|
15 |
# Wrapper around docbook2man to control the output's filename |
|
16 |
%.in: %.sgml footer.sgml |
|
17 |
tmpdir=`mktemp -d "./manbuildXXXXXX"` && \ |
|
18 |
mkdir "$$tmpdir" && \ |
|
19 |
docbook2man -o "$$tmpdir" $< && \ |
|
20 |
ok= && \ |
|
21 |
for check in `basename $< .sgml`.{7,8}; do \ |
|
22 |
if test -f "$$tmpdir/$$check"; then \ |
|
23 |
mv "$$tmpdir/$$check" $@ && \ |
|
24 |
ok=1 && \ |
|
25 |
break; \ |
|
26 |
fi; \ |
|
27 |
done; \ |
|
28 |
if test -z "$$ok"; then \ |
|
29 |
echo "Building $@ failed."; \ |
|
30 |
exit 1; \ |
|
31 |
fi; \ |
|
32 |
rm -rf "$$tmpdir" |
|
11 | 33 |
|
12 |
%.7 %.8: %.sgml footer.sgml |
|
13 |
docbook2man $< |
|
14 |
rm -f manpage.links manpage.refs |
|
34 |
%.7 %.8: %.in Makefile |
|
35 |
sed -e 's#@LOCALSTATEDIR@#$(localstatedir)#g' < $< > $@ |
b/man/ganeti-watcher.sgml | ||
---|---|---|
62 | 62 |
|
63 | 63 |
<para> |
64 | 64 |
The command has a state file located at |
65 |
<filename>/var/lib/ganeti/restart_state</filename> and a log
|
|
65 |
<filename>@LOCALSTATEDIR@/lib/ganeti/restart_state</filename> and a log
|
|
66 | 66 |
file at |
67 |
<filename>/var/log/ganeti/watcher.log</filename>. Removal of
|
|
67 |
<filename>@LOCALSTATEDIR@/log/ganeti/watcher.log</filename>. Removal of
|
|
68 | 68 |
either file will not affect correct operation; the removal of |
69 | 69 |
the state file will just cause the restart counters for the |
70 | 70 |
instances to reset to zero. |
Also available in: Unified diff