Skip to content

Commit c7182dd

Browse files
authored
Merge pull request #1136 from grogsaxle/develop
SSL_CERT_DIR setting for service
2 parents f3ba938 + f8bdf8b commit c7182dd

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

hubblestack/grains/osqueryinfo.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def osquery_host_state():
4242
deets["auditd_present"] = True
4343
deets[grain_key] = "inactive"
4444
except subprocess.CalledProcessError:
45-
log.info("%s doesn't seem to be running according to systemd")
45+
log.info("%s doesn't seem to be running according to systemd", systemd_name)
4646
except Exception as e:
4747
log.info("Unknown exception checking systemctl for %s status: %s", systemd_name, e)
4848

pkg/flatcar.arm64/entrypoint.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ mkdir -p /etc/systemd/system
131131
mkdir -p /etc/profile.d
132132
mkdir -p /etc/hubble/hubble.d
133133

134-
cp -v /hubble_build/pkg/hubble.service /etc/hubble/hubble-example.service
134+
cp -v /hubble_build/pkg/hubble_flatcar.service /etc/hubble/hubble-example.service
135135
cp -v /hubble_build/conf/hubble-profile.sh /etc/profile.d/
136136
cp -v /hubble_build/conf/hubble-d-conf /etc/hubble/hubble.d
137137

pkg/hubble_flatcar.service

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[Unit]
2+
Description=Hubblestack
3+
Requires=network-online.target
4+
After=network-online.target
5+
6+
[Service]
7+
Type=forking
8+
PIDFile=/var/run/hubble.pid
9+
ExecStart=/opt/hubble/hubble -d
10+
Restart=always
11+
RestartSec=300
12+
MemoryAccounting=true
13+
Environment=SSL_CERT_DIR=/usr/share/ca-certificates/
14+
15+
[Install]
16+
WantedBy=multi-user.target

0 commit comments

Comments
 (0)