@@ -800,16 +800,16 @@ install_package() {
800
800
if lssrc -s bindplane-otel-collector > /dev/null 2>&1 ; then
801
801
rmssys -s bindplane-otel-collector
802
802
else
803
- mkssys -s bindplane-otel-collector -p /opt/bindplane-otel-collector/bindplane-otel-collector -u " $( id -u bindplane-otel-collector) " -S -n15 -f9 -a ' --config config.yaml --manager manager.yaml --logging logging .yaml'
803
+ mkssys -s bindplane-otel-collector -p /opt/bindplane-otel-collector/opampsupervisor -u " $( id -u bindplane-otel-collector) " -S -n15 -f9 -a ' --config supervisor .yaml'
804
804
fi
805
805
806
806
# Install the service to start on boot
807
807
# Removing it if it exists, in order to have the most recent version
808
- if lsitab oiqcollector > /dev/null 2>&1 ; then
809
- rmitab oiqcollector
808
+ if lsitab bpcollector > /dev/null 2>&1 ; then
809
+ rmitab bpcollector
810
810
else
811
811
# shellcheck disable=SC2016
812
- mkitab ' oiqcollector :23456789:respawn:startsrc -s bindplane-otel-collector -a start -e "$(cat /etc/bindplane-otel-collector.aix.env)"'
812
+ mkitab ' bpcollector :23456789:respawn:startsrc -s bindplane-otel-collector -a start -e "$(cat /etc/bindplane-otel-collector.aix.env)"'
813
813
fi
814
814
815
815
# Start the service with the proper environment variables
@@ -838,7 +838,7 @@ install_aix()
838
838
mkdir -p /opt/bindplane-otel-collector/storage > /dev/null 2>&1
839
839
840
840
# Extract
841
- zcat " $out_file_path " | tar -Uxvf - -C /opt/bindplane-otel-collector > /dev/null 2>&1
841
+ gunzip -c " $out_file_path " | tar -Uxvf - -C /opt/bindplane-otel-collector > /dev/null 2>&1
842
842
843
843
# Move files to appropriate locations
844
844
mv /opt/bindplane-otel-collector/opentelemetry-java-contrib-jmx-metrics.jar /opt/ > /dev/null 2>&1
@@ -937,7 +937,7 @@ display_results() {
937
937
info " Supervisor Stop Command: $( fg_cyan " sudo service bindplane-otel-collector stop" ) $( reset) "
938
938
info " Supervisor Status Command: $( fg_cyan " sudo service bindplane-otel-collector status" ) $( reset) "
939
939
elif [ " $SVC_PRE " = " mkssys" ]; then
940
- info " Supervisor Start Command: $( fg_cyan " sudo startsrc -s bindplane-otel-collector -a start -e " $( cat /opt /bindplane-otel-collector/bindplane-otel-collector .env) " " ) $( reset) "
940
+ info " Supervisor Start Command: $( fg_cyan " sudo startsrc -s bindplane-otel-collector -a start -e \"\ $ (cat /etc /bindplane-otel-collector.env)\ "" ) $( reset) "
941
941
info " Supervisor Stop Command: $( fg_cyan " sudo stopsrc -s bindplane-otel-collector" ) $( reset) "
942
942
info " Supervisor Status Command: $( fg_cyan " sudo lssrc -s bindplane-otel-collector" ) $( reset) "
943
943
fi
@@ -1028,9 +1028,9 @@ uninstall()
1028
1028
1029
1029
# Remove the service
1030
1030
info " Disabling service..."
1031
- if lsitab oiqcollector > /dev/null 2>&1 ; then
1031
+ if lsitab bpcollector > /dev/null 2>&1 ; then
1032
1032
# Removing start on boot for the service
1033
- rmitab oiqcollector
1033
+ rmitab bpcollector
1034
1034
fi
1035
1035
if lssrc -s bindplane-otel-collector > /dev/null 2>&1 ; then
1036
1036
# Removing actual service entry
0 commit comments