/**
     * start the pravega standalone. the path should point to the pravega-standalone
     */
start the pravega standalone. the path should point to the pravega-standalone
start the pravega standalone . the path should point to the pravega - standalone
fn start(config: PravegaStandaloneServiceConfig) -> Self {
        PravegaStandaloneService::enable_debug_log(config.debug);
        PravegaStandaloneService::enable_auth(config.auth);
        PravegaStandaloneService::enable_tls(config.tls);
        let _ = create_dir("./log");
        let output = File::create("./log/output.log").expect("creating file for standalone log");
        info!(
            "start running pravega under path {} with config {:?}",
            PATH, config
        );
        let pravega = Command::new(PATH)
            .stdout(Stdio::from(output))
            .spawn()
            .expect("failed to start pravega standalone");
        info!("child pid: {}", pravega.id());
        PravegaStandaloneService { pravega }
    }
fn start ( config : PravegaStandaloneServiceConfig ) -> Self { PravegaStandaloneService :: enable_debug_log ( config . debug ) ; PravegaStandaloneService :: enable_auth ( config . auth ) ; PravegaStandaloneService :: enable_tls ( config . tls ) ; let _ = create_dir ( " " ) ; let output = File :: create ( " " ) . expect ( " " ) ; info ! ( " " PATH config ) ; let pravega = Command :: new ( PATH ) . stdout ( Stdio :: from ( output ) ) . spawn ( ) . expect ( " " ) ; info ! ( " " pravega id ( ) ) ; PravegaStandaloneService { pravega } }
start the pravega standalone.
start the pravega standalone .
config
PravegaStandaloneServiceConfig