Skip to content

Commit 65a7a70

Browse files
committed
systemd cfg
Signed-off-by: Clemens Vasters <[email protected]>
1 parent 12cb881 commit 65a7a70

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

mode-s/rpi_setup.sh

+7-4
Original file line numberDiff line numberDiff line change
@@ -58,17 +58,20 @@ After=network.target
5858
[Service]
5959
User=mode_s_kafka_bridge
6060
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
6562
Environment="STATIONID=$STATIONID"
6663
Environment="CONTENT_MODE=$CONTENT_MODE"
6764
Environment="KAFKA_BOOTSTRAP_SERVERS=$KAFKA_BOOTSTRAP_SERVERS"
6865
Environment="KAFKA_TOPIC=$KAFKA_TOPIC"
6966
Environment="SASL_USERNAME=$SASL_USERNAME"
7067
Environment="SASL_PASSWORD=$SASL_PASSWORD"
7168
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
7275
Restart=always
7376
7477
[Install]

0 commit comments

Comments
 (0)