I have a bash script in my
/usr/local/etc/rc.d/
that should run python script. I run the bush script with
service script_name start
and nothing happens at all. How could i debug that rc.d script? How could i know what is going on?
I have a bash script in my
/usr/local/etc/rc.d/
that should run python script. I run the bush script with
service script_name start
and nothing happens at all. How could i debug that rc.d script? How could i know what is going on?
Copyright © 2021 Jogjafile Inc.
FreeBSD rc.d system expects /bin/sh scripts. Hence sh debugging techniques apply here. For example, printing the statements with 'set -x' and 'set -v'
Below is a simple example of how to start my_app with the service command
Details are available in
Also quoting from the doc