Skip to content

Commit

Permalink
fix(service): Set address to prevent orphaned dbus-session processes (i…
Browse files Browse the repository at this point in the history
…nfluxdata#16454)

Co-authored-by: Antti Kultanen <antti.kultanen@molukki.com>
  • Loading branch information
pyksy and Antti Kultanen authored Feb 4, 2025
1 parent 51cddd9 commit ef4cabc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@ case $1 in
log_failure_msg "set open file limit to $OPEN_FILE_LIMIT"
fi

# Set DBUS_SESSION_BUS_ADDRESS if unset to prevent the daemon from
# spawning a stray dbus-session process
export DBUS_SESSION_BUS_ADDRESS="${DBUS_SESSION_BUS_ADDRESS:-/dev/null}"

log_success_msg "Starting the process" "$name"
if command -v startproc >/dev/null; then
startproc -u "$USER" -g "$GROUP" -p "$pidfile" -q -- "$daemon" -pidfile "$pidfile" -config "$config" -config-directory "$confdir" $TELEGRAF_OPTS
Expand Down

0 comments on commit ef4cabc

Please sign in to comment.