Hi All,
I am a new user of STAF.
I have installed STAF on FreeBSD 7.4 .
My requirement is to start the STAF Process after boot process.
I am able to start STAF process manually. Below is the output after
starting the process manually:
bsd72# /usr/local/staf/bin/STAFProc
Machine : bsd72
Machine nickname : bsd72
Startup time : 20120229-04:38:20
STAFProc version 3.4.1 initialized
I have placed a script in the following location, to start STAF process
automatically after bootup, but it is not working.
location : /etc/rc.d/ ( path )
==============================================
Script name : staf
Script content :
#!/bin/sh
# PROVIDE: staf
# REQUIRE: dhclient sshd hostapd securelevel
# KEYWORD: shutdown
. /etc/rc.subr
name="staf"
rcvar=`set_rcvar`
force_depend dhclient
staf_bsd_start()
{
echo "Starting the STAF Process"
( /usr/local/staf/bin/STAFProc & )
echo "Started the STAF Proces...."
}
: ${set_rcvar:="YES"}
command="/usr/local/staf/bin/STAFProc &"
load_rc_config $name
run_rc_command "$1"
==============================================
/var/log/messages shows following messages related to staf script ( which
was kept to run at boot time )
Feb 28 04:30:46 bsd72 root: /etc/rc: DEBUG: checkyesno: staf_enable is set
to YES.
Feb 28 04:30:46 bsd72 root: /etc/rc: DEBUG: run_rc_command: doit:
/usr/local/staf/bin/STAFProc &
but it throws the following error, when I try to check if staf has started
bsd72# staf bsd72 ping ping
Error registering with STAF, RC: 21
Is there a log file related to STAF, to check what is the error and why it
is not able to start the STAF process after reboot
Please let me know, if there is a solution for this issue.
Thanks,
Vamsee
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users