Commit f783ae92 authored by Hiro's avatar Hiro 🏄
Browse files

Fix onionperf service script

parent 008e9111
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -13,16 +13,16 @@ from prometheus_client import CollectorRegistry, Enum, write_to_textfile
registry = CollectorRegistry()

op = Enum('onionperf_state', 'Onionperf service current state',
        states=['starting', 'running', 'stopped', 'error'], registry=registry)
        states=['running', 'stopped', 'error'], registry=registry)

tor = Enum('tor_state', 'Tor process current state',
        states=['starting', 'running', 'stopped', 'error'], registry=registry)
        states=['running', 'stopped', 'error'], registry=registry)

tgen = Enum('tgen_state', 'Tgen process current state',
        states=['starting', 'running', 'stopped', 'error'], registry=registry)
        states=['running', 'stopped', 'error'], registry=registry)

port_status = Enum('port_status', 'Check that port 8080 can be reached',
        states=['open', 'close', 'error', 'error'], registry=registry)
        states=['open', 'close', 'error'], registry=registry)

try:
    op_stat = os.system('systemctl status onionperf --no-pager')