Date: Tue, 18 Oct 2005 23:34:15 +0800 From: "Foo JH" <jhfoo@nexlabs.com> To: <questions@freebsd.org> Subject: why my daemon did not start Message-ID: <001c01c5d3f9$69b0f790$640a0a0a@gypsy>
next in thread | raw e-mail | index | archive | help
Hi all, I'm trying to write a simple RC script to run my little Perl = script as a daemon. The script is as follows: #!/bin/sh portal_enable=3D${portal_enable-"NO"} portal_flags=3D${portal_flags-""} portal_pidfile=3D"/var/run/portald.pid" . /etc/rc.subr name=3D"portald" rcvar=3D`set_rcvar` command=3D"/home/admin/perfectportal/portald.pl &" load_rc_config $name pidfile=3D"${portal_pidfile}" start_cmd=3D"echo \"Starting ${name}.\"; /usr/bin/nice -5 ${command} = ${portal_flags} ${command_args}" stop_cmd=3D"kill `cat /var/run/portald.pid`" run_rc_command "$1" If I were to run this manually via=20 /usr/local/etc/rc.d/portald.sh start it works. but in a reboot, it does not start. Can anyone guide me where to find the error message, or (even better) = what may be the problem? Thanks.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?001c01c5d3f9$69b0f790$640a0a0a>