Monday, May 6, 2024
 Popular · Latest · Hot · Upcoming
6
rated 0 times [  6] [ 0]  / answers: 1 / hits: 5499  / 2 Years ago, tue, may 3, 2022, 8:50:08

I'm trying to understand start_daemon in the following /etc/init.d/nagios-nrpe-server startup script:


  start)
if [ "$INETD" = 1 ]; then
exit 1
fi
log_daemon_msg "Starting $DESC" "$NAME"
start_daemon -p $PIDDIR/nrpe.pid $NICENESS $DAEMON -c $CONFIG -d $DAEMON_OPTS
log_end_msg $?
;;

In particular, when I start this service it isn't writing a PID file as expected, thus the stop service nagios-nrpe-server command is not working (I need to manually kill the processes).


I'm trying to figure out how to trouble shoot the problem, but I can't run start_daemon ... from the command line.


I want to reproduce what the script is doing manually so I can work on what the problem is.


More From » startup

 Answers
1

It's a shell function in /lib/lsb/init-functions. You should see . /lib/lsb/init-functions earlier in the init script.


[#39660] Tuesday, May 3, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
gerrin

Total Points: 347
Total Questions: 109
Total Answers: 121

Location: Tanzania
Member since Fri, Oct 29, 2021
3 Years ago
gerrin questions
Sun, Sep 25, 22, 12:20, 2 Years ago
Sat, Sep 11, 21, 20:11, 3 Years ago
Tue, Jan 11, 22, 22:26, 2 Years ago
Thu, Oct 28, 21, 14:34, 3 Years ago
Sat, Mar 12, 22, 10:03, 2 Years ago
;