Xymon Mailing List Archive search

Request change for init.d/xymon-client

list Grégory Bulot
Wed, 04 Jan 2017 12:07:18 +0100
Message-Id: <user-c7480ac2fe99@xymon.invalid>

Hi,

Because i'm using xymon also in the master host in lxc (with debian), so
"ps" show all xymonlaunch used inside containers.

start-stop-daemon answer "already running"

Is it possible to change /etc/init.d/xymon-client, like that :
22a23
DAEMONNAME=xymonhyperv
51c52
<       start-stop-daemon --exec $DAEMON --chuid xymon --umask 022
--start \
---
      start-stop-daemon --name $DAEMONNAME --exec $DAEMON --chuid
xymon --umask 022 --start --pidfile=$PIDFILE \

and the man say
" Veuillez noter qu'à moins d'utiliser --pid ou --pidfile, le programme
start-stop-daemon se comporte comme killall(1). start-stop-daemon
recherche dans le tableau des processus tout pro‐ cessus  qui
correspond  au  nom,  pid parent, uid et/ou gid du processus (si 
indiqué). Toute correspondance empêchera --start de démarrer le démon. 
Tous les processus qui correspondent recevront le signal TERM (ou le 
signal indiqué par --signal ou --retry)
"