Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 123477 - net-analyzer/sguil-sensor-0.60_p1 - "/etc/init.d/log_packets cleandisk" does not work
Summary: net-analyzer/sguil-sensor-0.60_p1 - "/etc/init.d/log_packets cleandisk" does ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-20 04:20 UTC by Clemente Aguiar
Modified: 2006-12-02 15:27 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Clemente Aguiar 2006-02-20 04:20:18 UTC
I emerged sguil-sensor-0.60_p1 (~x86) on the sensor machine which is running "hardened/x86/2.6".

If you run "/etc/init.d/log_packets cleandisk" you get an error like this:

 * Caching service dependencies ...            [ ok ]
 * Cleaning Disk ...
 * Checking disk space (limited to 50%)...
 *   Current Disk Use: 2
1
2
20
7
10
4
0
16%
/etc/init.d/log_packets: line 61: [: too many arguments
* Done.       [ ok ]

The problem is that in the "/etc/init.d/log_packets" the variable LOG_DIR is undefined when one runs the "cleandisk".

Once I moved the line LOG_DIR="${LOGDIR}/${HOSTNAME}/dailylogs" to the beginning of the script the (a place where the variable gets set which ever option is used) then "cleandisk" works fine.

By the way Sguil-0.6.1 has been released.
Comment 1 Cédric Krier gentoo-dev 2006-12-02 15:27:39 UTC
Fix in cvs