Commit 65a7a70 1 parent 12cb881 commit 65a7a70 Copy full SHA for 65a7a70
File tree 1 file changed +7
-4
lines changed
1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -58,17 +58,20 @@ After=network.target
58
58
[Service]
59
59
User=mode_s_kafka_bridge
60
60
WorkingDirectory=$home_dir
61
- ExecStart=$venv_dir /bin/mode_s_kafka_bridge feed --dump1090-host $DUMP1090_HOST --dump1090-port $DUMP1090_PORT --ref-lat $ANTENNA_LAT --ref-lon $ANTENNA_LON --stationid $STATIONID \\
62
- ${CONTENT_MODE: +--content-mode " $CONTENT_MODE " } \\
63
- ${CONNECTION_STRING: +--connection-string " $CONNECTION_STRING " } \\
64
- ${CONNECTION_STRING:- --kafka-bootstrap-servers " $KAFKA_BOOTSTRAP_SERVERS " --kafka-topic " $KAFKA_TOPIC " --sasl-username " $SASL_USERNAME " --sasl-password " $SASL_PASSWORD " }
61
+ ExecStart=$venv_dir /bin/mode_s_kafka_bridge feed
65
62
Environment="STATIONID=$STATIONID "
66
63
Environment="CONTENT_MODE=$CONTENT_MODE "
67
64
Environment="KAFKA_BOOTSTRAP_SERVERS=$KAFKA_BOOTSTRAP_SERVERS "
68
65
Environment="KAFKA_TOPIC=$KAFKA_TOPIC "
69
66
Environment="SASL_USERNAME=$SASL_USERNAME "
70
67
Environment="SASL_PASSWORD=$SASL_PASSWORD "
71
68
Environment="CONNECTION_STRING=$CONNECTION_STRING "
69
+ Environment="ANTENNA_LAT=$ANTENNA_LAT "
70
+ Environment="ANTENNA_LON=$ANTENNA_LON "
71
+ Environment="DUMP1090_HOST=$DUMP1090_HOST "
72
+ Environment="DUMP1090_PORT=$DUMP1090_PORT "
73
+ StandardOutput=append:/var/log/mode_s_kafka_bridge/stdout.log
74
+ StandardError=append:/var/log/mode_s_kafka_bridge/stderr.log
72
75
Restart=always
73
76
74
77
[Install]
You can’t perform that action at this time.
0 commit comments