FAQ » History » Version 11
Pierre-Louis Bonicoli, 2017-09-16 18:54
Add typical logrotate configuration
1 | 1 | Pierre-Louis Bonicoli | h1. FAQ |
---|---|---|---|
2 | |||
3 | 11 | Pierre-Louis Bonicoli | * Do you have a typical @logrotate@ configuration to archive and compress bip logs? |
4 | |||
5 | * @/etc/crontab@: |
||
6 | <pre> |
||
7 | PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin |
||
8 | |||
9 | # adapt minute, hour, day of month, month and day of the week |
||
10 | # run every 1:11am sunday |
||
11 | 11 1 * * 7 root ionice -c3 srv_bip_logs_compress |
||
12 | </pre> |
||
13 | |||
14 | * @srv_bip_logs_compress@ |
||
15 | <pre> |
||
16 | $ cat /usr/local/sbin/srv_bip_logs_compress |
||
17 | #!/bin/sh |
||
18 | |||
19 | LOG_CURDIR=$(date +'%Y-%m') |
||
20 | |||
21 | find /srv/bip/logs -mindepth 2 -type f -mtime 1 -name "*.log" ! -wholename "*/${LOG_CURDIR}/*" -exec gzip {} \; |
||
22 | </pre> |
||
23 | |||
24 | 4 | Pierre-Louis Bonicoli | * when building Bip @error: unused parameter@ occurs |
25 | source:configure.ac#L32 use the "AX_C___ATTRIBUTE__":http://www.gnu.org/s/autoconf-archive/ax_c___attribute__.html macro. This macro is included in "autoconf-archive":http://www.gnu.org/software/autoconf-archive/ |
||
26 | 3 | Pierre-Louis Bonicoli | Full error message: |
27 | <pre> |
||
28 | src/connection.c: In function ‘tmp_dh_cb’: |
||
29 | src/connection.c:1093: error: unused parameter ‘ssl_unused’ |
||
30 | make[1]: *** [src/connection.o] Error 1 |
||
31 | </pre> |
||
32 | 6 | Pierre-Louis Bonicoli | Rerun @bootstrap@ script after installation of @autoconf-archive@. |
33 | |||
34 | 8 | Pierre-Louis Bonicoli | * How take in account bip.conf modifications without restarting bip ? |
35 | 5 | Pierre-Louis Bonicoli | Send signal HUP to bip. |
36 | <pre> |
||
37 | # Debian / Ubuntu |
||
38 | /etc/init.d/bip reload |
||
39 | # Other |
||
40 | killall -HUP bip |
||
41 | 6 | Pierre-Louis Bonicoli | </pre> |
42 | |||
43 | * Ubuntu 10.04: How to compile bip from repository ? |
||
44 | <pre> |
||
45 | sudo apt-get install git-core gcc flex bison libssl-dev automake autoconf-archive |
||
46 | ./bootstrap |
||
47 | ./configure --prefix=/opt/bip |
||
48 | CFLAGS="-Wno-error" ./configure --prefix=/opt/bip |
||
49 | make |
||
50 | 5 | Pierre-Louis Bonicoli | </pre> |
51 | 9 | Pierre-Louis Bonicoli | |
52 | |||
53 | * Is there a limit on the number of lines bip saves for each channel ? |
||
54 | See backlog_lines option when backlog is then stored into memory. |
||
55 | |||
56 | * Does bip try to connect to IRC servers automatically after bip is started ? |
||
57 | Yes. But note that Bip will not connect to a network if there is no connection using this network. |
||
58 | |||
59 | * Does bip have a command that displays list of networks in bip.conf ? |
||
60 | There is a "/BIP LIST" command. Admin could use "/BIP LIST networks|users|connections|all_links|all_connections" while user could use "/BIP LIST networks|connections". |
||
61 | |||
62 | * Does bip support modules ? |
||
63 | No |
||
64 | |||
65 | * How to send command to bip ? |
||
66 | Use "/BIP command" or "/quote BIP command" or "/query -BIP command" |
||
67 | 10 | Pierre-Louis Bonicoli | |
68 | * Any way to use sasl with bip ? |
||
69 | No |