Pete French
2019-Nov-12 18:52 UTC
python dameon coredumps when started from boot, but not by hand
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.