Permabanned
Hiyas,
Add the following script into your /etc/init.d/ substituting /home/shak/seti1 for your SETI directory:
You can also swap the S@H arguments on the end.
Then add this to the startup by adding
To /etc/conf.d/local.start
There may be some slight differences for different distros for the local.start and the /etc/init.d
Shak
Add the following script into your /etc/init.d/ substituting /home/shak/seti1 for your SETI directory:
Code:
#!/sbin/runscript
checkconfig() {
if [ ! -e /home/shak/seti1 ]
then
einfo "Creating /home/shak/seti1"
mkdir /home/shak/seti1
fi
if [ ! -e /home/shak/seti1/user_info.sah ]
then
einfo "Setting up SETI@home for the first time"
cd ${SETIATHOME_DIR}
./setiathome -login
fi
}
start() {
checkconfig
ebegin "Starting SETI@home"
cd /home/shak/seti1
./setiathome -nolock -proxy croccomp.no-ip.com:5517 >&/dev/null&
eend $?
}
stop() {
ebegin "Stopping SETI@home"
killall setiathome
eend $?
}
You can also swap the S@H arguments on the end.
Then add this to the startup by adding
Code:
/etc/init.d/setiathome start
To /etc/conf.d/local.start
There may be some slight differences for different distros for the local.start and the /etc/init.d
Shak