Date: Tue, 12 Nov 2019 18:52:03 +0000 From: Pete French <petefrench@ingresso.co.uk> To: "Kevin P. Neal" <kpn@neutralgood.org> Cc: "O'Connor, Daniel" <darius@dons.net.au>, freebsd-stable@freebsd.org, 000.fbsd@quip.cz Subject: Re: python dameon coredumps when started from boot, but not by hand Message-ID: <495b3478-a6af-5786-7ee8-730b497c4f11@ingresso.co.uk> In-Reply-To: <20191110222026.GA9641@neutralgood.org> References: <b2d1c84d-36a5-e5b5-4c88-0c458ea668e1@quip.cz> <E1iRdgM-0000tH-T1@dilbert.ingresso.co.uk> <20191104151555.GB60435@neutralgood.org> <4010794E-F6C7-47DB-9746-8A6F63C957F7@dons.net.au> <b9694693-da69-8e39-092c-c5bd39284982@ingresso.co.uk> <20191110222026.GA9641@neutralgood.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 10/Nov/2019 22:20, Kevin P. Neal wrote: > The rc script must have a function that starts the python program, right? Actually, no. It just looks like this: #!/bin/sh # PROVIDE: waagent # REQUIRE: sshd netif dhclient # KEYWORD: nojail . /etc/rc.subr PATH=$PATH:/usr/local/bin:/usr/local/sbin name="waagent" rcvar="waagent_enable" pidfile="/var/run/waagent.pid" command="/usr/local/sbin/${name}" command_interpreter="python" command_args="start" load_rc_config $name run_rc_command "$1" Which is why I have been jumping through some annoying hoops to try and get this to work :-) Must admit I havent had the time to devote to it properly yet, as I thought it would be relatively simple to do, but the simple ways I tried didn't work. -pete.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?495b3478-a6af-5786-7ee8-730b497c4f11>