Date: Fri, 1 Nov 2019 07:23:54 +1030 From: "O'Connor, Daniel" <darius@dons.net.au> To: Pete French <petefrench@ingresso.co.uk> Cc: freebsd-stable@freebsd.org Subject: Re: python dameon coredumps when started from boot, but not by hand Message-ID: <8782B7F4-71E9-45D9-A18D-7C846380E9F7@dons.net.au> In-Reply-To: <E1iQBuR-000BU2-CN@dilbert.ingresso.co.uk> References: <E1iQBuR-000BU2-CN@dilbert.ingresso.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
> On 1 Nov 2019, at 01:28, Pete French <petefrench@ingresso.co.uk> = wrote: >=20 >> Hmm very odd.. >> Does the tool depend on something else running? >=20 > No, not at all. Earlier versions of the tool dont do this either. >=20 > On a machine running the tool started by hand the two processes look = like this: >=20 > 0 86918 1 0 20 0 34268 23860 wait I 0- = 0:00.92 python /usr/local/sbin/waagent -daemon (python3.6) > 0 86986 86918 0 23 0 42380 27236 select S 0- = 46:59.62 python3 -u /usr/local/sbin/waagent -run-exthandlers (python3.6) OK. >> What does the rc.d file for it look like? >=20 > very simple.... >=20 > #!/bin/sh >=20 > # PROVIDE: waagent > # REQUIRE: sshd netif dhclient > # KEYWORD: nojail >=20 > . /etc/rc.subr >=20 > PATH=3D$PATH:/usr/local/bin:/usr/local/sbin > name=3D"waagent" > rcvar=3D"waagent_enable" > pidfile=3D"/var/run/waagent.pid" > command=3D"/usr/local/sbin/${name}" > command_interpreter=3D"python" > command_args=3D"start" >=20 > load_rc_config $name > run_rc_command "$1" >=20 > my installed python is a symblic link to python3.6, and thats about as = basic > as an rc file gets. Its in /etc/rc.d not /usr/local/etc/rc.d but I = dont think > thats going to matter. >=20 > I suppose I could try and find the bit in the python where it starts = the 2nd process and chnage that to log any outout somehow maybe ? Hmm, does changing the command_args line to this work: command_args=3D"start 2>/tmp/waagent.log" work? -- Daniel O'Connor "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8782B7F4-71E9-45D9-A18D-7C846380E9F7>