hi, I'm new to ghost bsd and am trying to run a service at startup. For this a created a rc.d script according to the FreeBsd handbook, placed it in /etc/init.d and enabled it in /etc/rc.conf. After executing "rc-update add <name> default" i can now see it in /etc/runlevels/default and it is listed in "rc-update show". When I run the script manually with "service <name> start" it works as expected, but it is not executed on system startup.
Did I forget something?
edit:
I now also tried the example script from the handbook with the slight modification of creating a file in my home directory. Still doesn't run automatically.
Code: Select all
#!/bin/sh
. /etc/rc.subr
name="dummy"
rcvar=dummy_enable
start_cmd="${name}_start"
stop_cmd=":"
dummy_start()
{
echo "bar" > /home/qgo/foo.log
}
load_rc_config $name
run_rc_command "$1"