[ Date Index ][
Thread Index ]
[ <= Previous by date /
thread ]
[ Next by date /
thread => ]
You could write a script, or alternatively assuming Genome Daemon uses ./ as std output directory then you could just create /usr/local/(bin or etc)/genome. Link up as previous email and the daemon runs in its own directory and output to the same. ~No scripting requiredHere's how I would do it, but that doesn't mean I'm right :-)
Hope this helps
Rick
Jonathan Melhuish wrote:
On Saturday 07 December 2002 10:53 am, you wrote:
My Suggestion, which may be flawed.
Pop the script you want to run into somewhere like /usr/local/bin (Binary Exec) or /usr/local/etc (Scripts)
Create a symlink in /etc/rc.d/rc5.d something like S100genome thus
>cd /etc/rc.d/rc5.d >ln -s s100genome /usr/local/etc/genome
This should should run the script up as a service at boot time, ( I am
assuming that the genome thingy is a daemon of some sort)
Yup, it is, but it has to be run in it's own directory, because that's where it spits out (and reads) its files from. So shall I write a mini bash script, something like:
cd /home/jon/FAH; ./FAH3*
Then bung that in /usr/local/etc and link to it? Something along those lines?
Jon
Create a script in /etc/rc.d/init.d/ called genome. In that script, put the following:
#!/bin/sh
#
case "$1" in
start)
echo -n "Starting Genome: "
cd /path/to/genome/
./command-to-start-genome
echo
;;
stop)
echo -n "Stopping Genome: "
cd /path/to/genome
./command-to-stop-genome
echo
;;
*)
echo "Usage genome {start|stop}"
exit 1
esac-- A child of five could understand this! Fetch me a child of five.
-- The Mailing List for the Devon & Cornwall LUG Mail majordomo@xxxxxxxxxxxx with "unsubscribe list" in the message body to unsubscribe.