Skip to content

Commit

Permalink
fix(sysv script): Improvement to sysv script for the vector process s…
Browse files Browse the repository at this point in the history
…tart within background (#21370)

* start() function update for vector daemon working on backgroud

* spelling

Signed-off-by: Jesse Szwedko <[email protected]>

* change log upload

* spell fix out

* Update changelog.d/21370-improvement-to-sysv-script.md

* fix changelog fragment name

Signed-off-by: Jesse Szwedko <[email protected]>

---------

Signed-off-by: Jesse Szwedko <[email protected]>
Co-authored-by: Jesse Szwedko <[email protected]>
Co-authored-by: Jesse Szwedko <[email protected]>
  • Loading branch information
3 people authored Oct 3, 2024
1 parent 6e48431 commit 7086dfc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/actions/spelling/expect.txt
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,6 @@ enp
enumdecl
enumflags
envsubst
EOIG
EOL'ed
Err'ing
errorf
Expand Down Expand Up @@ -442,7 +441,6 @@ Godbolt
gogoproto
gohai
goldberg
goldmark
GPB
gpgcheck
gpgkey
Expand Down Expand Up @@ -745,6 +743,7 @@ nodebuginfo
nodistro
nofield
nofree
nohup
nomac
NONALPHANUM
nonbare
Expand Down Expand Up @@ -825,6 +824,7 @@ peekable
PEMS
pgmajfault
pgrep
pidof
PII
Pitbull
pkc
Expand Down
3 changes: 3 additions & 0 deletions changelog.d/21370-improvement-to-sysv-script.fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
The SysV init script now starts Vector in the background.

authors: waltzbucks
3 changes: 2 additions & 1 deletion distribution/init.d/vector
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ RETVAL=0
# Start
start() {
echo -n $"Starting $prog: "
daemon --pidfile=${pidfile} $vector $OPTIONS
daemon --pidfile=${pidfile} "nohup $vector </dev/null &> /dev/null &"
RETVAL=$?
[ $RETVAL = 0 ] && pidof ${prog} > ${pidfile}
echo
return $RETVAL
}
Expand Down

0 comments on commit 7086dfc

Please sign in to comment.