Greetings all,I am trying to set up STAF for use on an isolated network we are setting up. As such, we want things to be as resilient and automated as possible. The startup scripts / environment scripts which are distributed with staf are not really suited for use from a standard init.d script. All the machines will run Linux.
STAFEnv.sh (maybe not included in the newest version?), for example, uses `dirname $0`, so if it is sourced from a script which is not located in the STAF home, it fails. Additionally, if I put some of these things (like setting LD_LIBRARY_PATH and CLASSPATH) directly in the /etc/init.d/staf script I am writing, then we cannot push out new versions using STAF itself, if they required these things to change. (we use STAF to send out updates of STAF, among other things, but STAF is not running as root and thus cannot update /etc/init.d/staf)
Has anyone already solved this problem, or does anyone out there have some good /etc/init.d scripts for running STAF? Anything which solves all or some of these problems would be useful:
1. Run STAF as non-root user 2. Run STAF at boot (using chkconfig?)3. Supports the standard init.d script commands (start, stop, status, condrestart) 4. Can be run from outside the staf home directory, by a script in an arbitrary location (like /etc/init.d)
I have 1 and 2 down, but 3 and 4 I am still working on. Thanks! -- Carl Myers Palantir Technologies | Internal Tools Software Engineer cmy...@palantirtech.com
smime.p7s
Description: S/MIME Cryptographic Signature
------------------------------------------------------------------------------ Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________ staf-users mailing list staf-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/staf-users