This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::env; | |
fn main() { | |
let mut tomlfile = ""; | |
for argument in env::args() { | |
let tmp = &*argument; | |
if tmp.contains("toml=") { | |
println!("{}", &tmp[5 .. tmp.len()]); | |
tomlfile = &tmp[5 .. tmp.len()]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=consul agent | |
Requires=network-online.target | |
After=network-online.target | |
[Service] | |
EnvironmentFile=-/etc/sysconfig/consul | |
Environment=GOMAXPROCS=2 | |
Restart=on-failure | |
ExecStart=/usr/local/sbin/consul agent $OPTIONS -config-dir=/etc/consul.d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import logging | |
import threading | |
import multiprocessing | |
import time | |
from kafka.client import KafkaClient | |
from kafka.common import FetchRequest, ProduceRequest | |
from kafka.consumer import SimpleConsumer | |
from kafka.producer import SimpleProducer |