root / shared-filer / attach.wrap @ bd924ffd
History | View | Annotate | Download (708 Bytes)
1 |
#!/bin/bash |
---|---|
2 |
|
3 |
# This file can be used to log all error output of the attach script, |
4 |
# which is currently not being logged under /var/log/ganeti/extstorage/ |
5 |
# due to the way Ganeti handles stdout and logfiles (RunResult). |
6 |
# All other scripts (create, detach, remove) are logged under that dir. |
7 |
# |
8 |
# To do so, do the following: |
9 |
# |
10 |
# * rename the `attach' script to `attach.py' |
11 |
# * rename the `attach.wrap' script to `attach' |
12 |
# * set LOGFILE to point to a logfile of your choise |
13 |
# (by default this logs under the same dir as all other scripts) |
14 |
|
15 |
ATTACH_SCRIPT=/usr/share/ganeti/extstorage/shared-filer/attach.py |
16 |
LOGFILE=/tmp/attach-shared-filer-$(date +%Y%M%d%H:%m:%S.%N) |
17 |
|
18 |
exec "$ATTACH_SCRIPT" 2>"$LOGFILE" |