1
package com.eucalyptus.system;
3
import org.apache.log4j.Logger;
4
import com.eucalyptus.bootstrap.Bootstrap;
5
import com.eucalyptus.bootstrap.Bootstrapper;
6
import com.eucalyptus.bootstrap.Component;
7
import com.eucalyptus.bootstrap.Provides;
8
import com.eucalyptus.bootstrap.RunDuring;
9
import com.eucalyptus.bootstrap.Bootstrap.Stage;
10
import com.eucalyptus.records.EventType;
11
import com.eucalyptus.records.EventRecord;
13
@Provides(Component.bootstrap)
14
@RunDuring(Bootstrap.Stage.UnprivilegedConfiguration)
15
public class DirectoryBootstrapper extends Bootstrapper {
16
private static Logger LOG = Logger.getLogger( DirectoryBootstrapper.class );
17
public DirectoryBootstrapper( ) {}
19
public boolean load( Stage current ) throws Exception {
20
for( BaseDirectory b : BaseDirectory.values( ) ) {
21
EventRecord.here( DirectoryBootstrapper.class, EventType.SYSTEM_DIR_CHECK, b.name(), b.toString( ) ).info( );
24
for( SubDirectory s : SubDirectory.values( ) ) {
25
EventRecord.here( DirectoryBootstrapper.class, EventType.SYSTEM_DIR_CHECK, s.name(), s.toString( ) ).info( );
32
public boolean start( ) throws Exception {