Hello,
i'm trying to setup a custom service using procd
the service should be a python script. i tried setting up the service file in /etc/init.d and i ended up with something like this
#!/bin/sh /etc/rc.common
USE_PROCD=1
START=99
STOP=01
PROG=/usr/bin/python "/etc/py/alexa/skill.py"
PIDFILE=/var/run/skill.pid
start_service() {
procd_open_instance
procd_set_param command $PROG
procd_set_param respawn ${respawn_threshold:-3600} ${respawn_timeout:-5} ${respawn_retry:-5}
procd_set_param stdout 1
procd_set_param stderr 1
procd_set_param pidfile $PIDFILE
procd_set_param user nobody
procd_close_instance
}
now, the problem: when i run /etc/init.d/skill start well, it starts, but it starts just like if i run the script directly. i see output where i call it (not in logread) and the command line is blocked by the output itself.
so, it is not going background.
what am i missing?
thanks