summaryrefslogtreecommitdiff
path: root/astro/setiathome/files
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2005-12-15 01:34:04 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2005-12-15 01:34:04 +0000
commita25526c8f7c0a715182a4a76e6606b628198c723 (patch)
tree34583e6ef23725a321bcb1bd2122104f580a2c40 /astro/setiathome/files
parentFix CONFIGURE_ARGS entry typo (diff)
The SETI@home project moves to a new software client based on BOINC.
Please install astro/boinc-setiathome. See http://setiathome.ssl.berkeley.edu/, November 15, 2005 for more information. PR: ports/89525 Submitted by: Edwin Groothuis <edwin@mavetju.org>
Notes
Notes: svn path=/head/; revision=151205
Diffstat (limited to 'astro/setiathome/files')
-rw-r--r--astro/setiathome/files/rc.setiathome.conf17
-rw-r--r--astro/setiathome/files/setiathome.1335
-rw-r--r--astro/setiathome/files/setiathome.bin142
-rw-r--r--astro/setiathome/files/setiathome.sh228
-rw-r--r--astro/setiathome/files/xsetiathome.184
5 files changed, 0 insertions, 806 deletions
diff --git a/astro/setiathome/files/rc.setiathome.conf b/astro/setiathome/files/rc.setiathome.conf
deleted file mode 100644
index 209917e17e36..000000000000
--- a/astro/setiathome/files/rc.setiathome.conf
+++ /dev/null
@@ -1,17 +0,0 @@
-# $FreeBSD$
-#
-# SETI@home startup configuration file.
-#
-
-# seti_wrkdir=/var/db/${rc_file%.sh} # primary working directory
-# seti_std_args="-email -graphics" # startup command line arguments
-# seti_reg_args=-login # command line arguments to register
-# seti_proxy_server= # HTTP proxy server (hostname:port)
-# seti_socks_server= # SOCKS proxy server (hostname:port)
-# seti_socks_user= # SOCKS proxy user name
-# seti_socks_passwd= # SOCKS proxy password
-# seti_user=setiathome # user name to run as
-# seti_group=${seti_user} # group name to run as
-# seti_nice=15 # nice level to run at
-# seti_maxprocs=$(sysctl -n hw.ncpu) # max. number of processes to start
-# seti_sleep_time=21600 # time to sleep between restarts
diff --git a/astro/setiathome/files/setiathome.1 b/astro/setiathome/files/setiathome.1
deleted file mode 100644
index 3ad84bf3fd53..000000000000
--- a/astro/setiathome/files/setiathome.1
+++ /dev/null
@@ -1,335 +0,0 @@
-.\" $FreeBSD$
-.Dd Dec 12, 2000
-.Dt setiathome 1 LOCAL
-.Os FreeBSD
-.Sh NAME
-.Nm setiathome
-.Nd the SETI@home client program
-.Sh SYNOPSIS
-.Nm
-.Op Ar options
-.Sh DESCRIPTION
-.Nm
-is the
-.Ux
-version of the
-.Tn SETI@home
-client.
-It downloads radio telescope data from a network server,
-analyzes the data looking for signals of extraterrestrial origin,
-and uploads results to the server, repeating this cycle indefinitely.
-See
-.Li http://setiathome.berkeley.edu
-for more information.
-.Pp
-The first time you run
-.Nm
-it will interactively
-ask you for E-mail address, name, country etc.
-This info is stored in a file and no interaction is
-needed when you run the program subsequently.
-.Pp
-After this you can run
-.Nm
-in the background,
-and direct its output to
-.Pa /dev/null
-if you like.
-.Pp
-.Nm
-can be freely stopped and restarted.
-It saves its state in files, and will pick up where it left off.
-.Pp
-If you want to run multiple instances of
-.Nm
-(on a multiprocessor machine, or on multiple machines
-that share a filesystem) each one must be run in a different directory.
-.Sh IMPLEMENTATION NOTES
-.Nm
-requires about 0.5\ MBytes of disk space per working directory, and about
-15\ MBytes of memory per instance.
-If you have ample physical memory, its work load should be almost undetectable.
-Additionally,
-.Nm
-requires a permanent or
-.Dq dial on demand
-Internet connection to upload results to and download new work units from the
-.Tn SETI@home
-server at any time.
-.Sh OPTIONS
-.Bl -tag -width countries
-.It Fl countries
-Show list of country codes.
-.It Fl email
-Send E-mail (to login E-mail address) on errors.
-Useful if you run in background directed to
-.Pa /dev/null .
-.It Fl graphics
-Generate a data stream for the
-.Xr xsetiathome 1
-graphical interface.
-.It Fl login
-Login or create new account.
-.It Fl nice Ar N
-Set
-.Xr nice 1
-priority to
-.Ar N
-(default 1).
-.It Fl nolock
-Omit the multiple-instance check, which uses file locking
-(not available on some NFS systems).
-.It Fl proxy Ar hostname : Ns Ar port
-Connect to
-.Tn SETI@home
-server via specified HTTP proxy server and port.
-.It Fl socks_passwd Ar password
-SOCKS
-.Ar password .
-.It Fl socks_server Ar hostname : Ns Ar port
-Connect to
-.Tn SETI@home
-server via specified SOCKS server and port.
-Overrides
-.Ev SOCKS_SERVER .
-SOCKS versions 4 and 5 are supported.
-.It Fl socks_user Ar name
-SOCKS user
-.Ar name .
-.It Fl stop_after_process
-Stop after processing current work unit.
-Do not send result.
-.It Fl stop_after_xfer
-Stop after current work unit has been sent to the SETI
-server and a new work unit has been obtained.
-(See also
-.Pa stop_after_send.txt
-mentioned in
-.Sx FILES
-below.)
-.It Fl verbose
-Print a running summary of the work being done.
-.It Fl version
-Show software version.
-.El
-.Sh USAGE
-.Ss Starting setiathome
-This
-.Fx
-port includes a start-up script that starts
-.Nm
-at system start-up and stop it at system shut-down.
-.Ss Stopping setiathome
-There is two way to stop
-.Nm ,
-gracefully (See
-.Pa stop_after_send.txt
-mentioned in
-.Sx FILES
-below) and urgently (using kill as done at system shut-down time).
-To do so, respectively run
-.Pp
-.Dl %%PREFIX%%/etc/rc.d/%%PREFX%%setiathome%%SUFX%%.sh gracefull
-or
-.Dl %%PREFIX%%/etc/rc.d/%%PREFX%%setiathome%%SUFX%%.sh stop
-.Ss Configuration File
-The optional configuration file
-.Pa %%PREFIX%%/etc/rc.%%PREFX%%setiathome%%SUFX%%.conf
-may contain one or more of the following variable assignments to override
-their default values:
-.Bl -tag -width seti_wrkdir
-.It Pa seti_wrkdir=/var/db/setiathome
-The working directory where
-.Nm
-will store it's temporary files.
-.It Pa seti_std_args=-email and/or -graphics
-The command line arguments for normal start-up.
-.It Pa seti_reg_args=-login
-The command line arguments for registration.
-.It Pa seti_proxy_server=hostname:port
-The HTTP proxy server and port to connect through.
-.It Pa seti_socks_server=hostname:port
-The SOCKS server and port to connect through.
-.It Pa seti_socks_user=username
-The SOCKS user name to connect with.
-.It Pa seti_socks_passwd=password
-The SOCKS password to connect with.
-.It Pa seti_user=setiathome
-The user to run
-.Nm
-as.
-.It Pa seti_group=setiathome
-The group to run
-.Nm
-as (only used at registration time).
-.It Pa seti_nice=15
-The
-.Xr nice 1
-value to run
-.Nm
-at.
-.It Pa seti_maxprocs= Ns Va Number of CPUs
-The number of
-.Nm
-processes to run concurrently. Defaults to the number of CPUs installed.
-Running more than one instance per CPU is not useful, as
-.Nm
-is almost completely CPU-bound.
-.It Pa seti_sleep_time=21600
-The time to sleep (in seconds) between restarts if the
-.Nm
-data server is unresponsive.
-.El
-.Pp
-If you change values in the configuration file, you need to stop and start
-.Nm Ns ,
-and possibly reconfigure the working directory for the changes to take
-effect. Run
-.Pp
-.Dl %%PREFIX%%/etc/rc.d/%%PREFX%%setiathome%%SUFX%%.sh stop
-.Dl %%PREFIX%%/etc/rc.d/%%PREFX%%setiathome%%SUFX%%.sh register
-.Dl %%PREFIX%%/etc/rc.d/%%PREFX%%setiathome%%SUFX%%.sh start
-.Pp
-to do that.
-.Ss Setting up setiathome
-You can use the start-up script to set up a working directory
-and register with or log in to
-.Tn SETI@home
-by calling it with the argument
-.Ar register .
-If you'd like to configure and run it manually, you should first disable the
-start-up script. Then, for each
-.Nm
-instance you'd like to run, create a directory, make it owned by the user
-you'd like to run
-.Nm
-as, and run
-.Ic setiathome -login
-in that directory.
-.Pp
-Then, arrange for
-.Nm
-to be started automatically. You can easily do so by adding a line similiar
-to
-.Bd -ragged -offset indent
-.Li */10 * * * * cd
-.Va working directory
-.Li && setiathome -email >/dev/null
-.Ed
-.Pp
-to the user's crontab.
-.Sh ENVIRONMENT
-.Bl -tag -width SOCKS_SERVER
-.It Ev HTTP_PROXY
-If defined,
-.Nm
-will connect through a proxy server, specified as
-.Do Ns Va hostname Ns
-.Op Li : Ns Va port
-.Dc .
-.It Ev SOCKS_SERVER
-If defined,
-.Nm
-will connect through a SOCKS server, specified as
-.Do Ns Va hostname Ns
-.Op Li : Ns Va port
-.Dc .
-.It Ev SOCKS_USER , Ev SOCKS_PASSWD
-If defined, these will be used as the login name and password
-for the SOCKS server.
-Otherwise
-.Nm
-will query you.
-.El
-.Sh FILES
-.Bl -tag -width /var/db -compact
-.It Pa %%PREFIX%%/etc/rc.d/%%PREFX%%setiathome%%SUFX%%.sh
-Start-up script.
-.Pp
-.It Pa %%PREFIX%%/etc/rc.%%PREFX%%setiathome%%SUFX%%.conf
-Optional configuration file for the start-up script.
-.Pp
-.It Pa /var/db/setiathome/
-Primary working directory.
-.Pp
-.It Pa /var/db/setiathome/user_info.sah
-Registration data.
-.Pp
-.It Pa /var/db/setiathome/ Ns Va n Ns Pa /
-Working directories for additional process
-.Va n
-(when running more than one instance).
-.Pp
-.It Pa /var/db/setiathome/ Ns Xo
-.Op Ns Va n Ns Pa / Ns
-.Pa lock.sah
-.Xc
-Lock file to prevent multiple instances to work on the same data.
-.Pp
-.It Pa /var/db/setiathome/ Ns Xo
-.Op Ns Va n Ns Pa / Ns
-.Pa *.sah
-.Xc
-Working files.
-These should not be modified.
-.Pp
-.It Pa /var/db/setiathome/ Ns Xo
-.Op Ns Va n Ns Pa / Ns
-.Pa pid.sah
-.Xc
-The process ID of the current instance.
-.Pp
-.It Pa /var/db/setiathome/ Ns Xo
-.Op Ns Va n Ns Pa / Ns
-.Pa stop_after_send.txt
-.Xc
-While the client is running, touch this file in the working directory
-to finish up your current work unit, return your result, and not
-download a new work unit.
-When the processing is finished, and the result sent, the client will stop.
-Note this one file extension is
-.Pa .txt ,
-while all other files used by
-the client have extensions
-.Pa .sah .
-.El
-.Sh SEE ALSO
-.Xr xsetiathome 1 ,
-.Xr ipcs 1 ,
-.Xr ipcrm 1 .
-.Sh AUTHORS
-.Tn SETI@home
-was developed by David Anderson, Jeff Cobb, Charles Congdon, Charlie Fenton,
-David Gedye, Kyle Granger, Eric Korpela, Matt Lebofsky, Peter Leiser, Brad
-Silen, Woody Sullivan, and Dan Werthimer.
-.Pp
-.An Stefan Bethke Aq stb@freebsd.org
-amended the original manual page for this
-.Fx
-port.
-.Sh BUGS
-Outstanding shared memory segments and semaphores may be left
-active in case of an abnormal exit of the
-.Ic setiathome -graphics
-process. These can prevent any future invocation of
-.Ic setiathome -graphics .
-To resolve this problem, use
-.Xr ipcs 1
-and
-.Xr ipcrm 1
-to remove shared memory segments and semaphores that
-are not associated with a process. This behavior may vary
-depending upon how your
-.Ux
-system handles this situation.
-.Pp
-For version 3.* clients, the estimated progress as indicated
-by the
-.Pa prog=
-line in the
-.Pa state.sah
-file in not exactly linear
-in relationship to completion time. Using this value to
-predict completion time may not be completely accurate.
-The linear relationship will vary depending upon the characteristics
-of the work unit parameters.
diff --git a/astro/setiathome/files/setiathome.bin b/astro/setiathome/files/setiathome.bin
deleted file mode 100644
index 9e4a54c69670..000000000000
--- a/astro/setiathome/files/setiathome.bin
+++ /dev/null
@@ -1,142 +0,0 @@
-#!/bin/sh -T
-
-# $FreeBSD$
-
-# Copyright (c) 2003 Cyrille Lefevre. All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-#
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in
-# the documentation and/or other materials provided with the
-# distribution.
-# 3. The name of the authors and contributors may not be used to
-# endorse or promote products derived from this software without
-# specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS''
-# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
-# PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS
-# OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
-# USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
-# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
-# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-# SUCH DAMAGE.
-
-setistart () { # dir
- local dir
- dir=$1
-
- # goto the startup dir
- cd ${dir} || return
-
- # don't start a dying client
- [ -f stop_after_send.txt ] && return
-
- # fire up a setiathome client
- ${program_path} ${program_args} > /dev/null &
-
- # memorize the startup dir
- eval pid_$!=${dir}
- # and the client process ID
- setipids="${setipids} $!"
-}
-
-setikill () { # SIGTERM handler
- local pids pid
-
- # save pids to kill
- pids="${sleeppid} ${setipids}"
- # avoid futher setiathome startup
- unset setipids
-
- # kill'em all if any
- for pid in ${pids}; do
- ps p ${pid} > /dev/null && kill ${pid}
- done
-}
-
-setirestart () { # SIGCHLD handler
- local pids pid dir
-
- # killing in progress
- [ -n "${setipids}" ] || return
- # restart in process
- [ -n "${sleeppids}" ] && return
-
- # wait for setiathome servers to come up
- sleep ${seti_sleep_time} &
-
- # wait even if more than one setiathome client dies
- sleeppid=$!
- while ps p ${sleeppid} > /dev/null; do
- wait ${sleeppid}
- done
- unset sleeppid
-
- # killing while sleeping
- [ -n "${setipids}" ] || return
-
- # save pids to restart
- pids=${setipids}
- # reset the process ID list
- unset setipids
-
- for pid in ${pids}; do
- if ps p ${pid} > /dev/null; then
- # still alive
- setipids="${setipids} ${pid}"
- else
- # backup the startup dir
- eval dir=\${pid_${pid}}
- # clean the old one
- unset pid_${pid}
- # launch the dead client
- eval setistart ${dir}
- fi
- done
-}
-
-if [ -z "${program_path}" ]; then
- case $0 in
- /*) rc_dir=${0%/*} ;;
- *) rc_dir=${PWD:-$(pwd)} ;;
- esac
- rc_file=${0##*/}
- rc_path=${rc_dir}/${rc_file}
-
- if ! PREFIX=$(expr ${rc_path} : "\(/.*\)/libexec/${rc_file}\$"); then
- echo "${rc_file}: Cannot determine PREFIX." >&2
- echo "Please use the complete pathname." >&2
- exit 64
- fi
-
- echo "Don't use this script directly, uses the following one instead :" >&2
- echo " ${PREFIX}/etc/rc.d/${rc_file%.bin}.sh start" >&2
- exit 1
-fi
-
-# save this shell process ID
-echo $$ > ${seti_wrkdir}/shpid.sah
-
-# setup handlers
-trap setikill TERM
-trap setirestart CHLD
-
-# startup setiathome client(s)
-for dir in ${seti_wrksuff}; do
- setistart ${seti_wrkdir}/${dir}
-done
-
-# wait for them until death
-while [ -n "${setipids}" ]; do
- wait
-done
diff --git a/astro/setiathome/files/setiathome.sh b/astro/setiathome/files/setiathome.sh
deleted file mode 100644
index 3823454a9489..000000000000
--- a/astro/setiathome/files/setiathome.sh
+++ /dev/null
@@ -1,228 +0,0 @@
-#!/bin/sh
-#
-# $FreeBSD$
-#
-# Start or stop SETI@home, or set up working directory and register.
-#
-
-case $0 in
-/*) rc_dir=${0%/*} ;;
- *) rc_dir=${PWD:-$(pwd)} ;;
-esac
-rc_file=${0##*/}
-rc_path=${rc_dir}/${rc_file}
-rc_arg=$1
-
-# override these variables in ${PREFIX}/etc/rc.setiathome.conf
-set -a
-seti_wrkdir=/var/db/${rc_file%.sh} # primary working directory
-seti_std_args="-email -graphics" # startup command line arguments
-seti_reg_args=-login # command line arguments to register
-seti_proxy_server= # HTTP proxy server (hostname:port)
-seti_socks_server= # SOCKS proxy server (hostname:port)
-seti_socks_user= # SOCKS proxy user name
-seti_socks_passwd= # SOCKS proxy password
-seti_user=setiathome # user name to run as
-seti_group=${seti_user} # group name to run as
-seti_nice=15 # nice level to run at
-seti_maxprocs=$(sysctl -n hw.ncpu) # max. number of processes to start
-seti_sleep_time=21600 # time to sleep between restarts
-set +a
-
-if ! PREFIX=$(expr ${rc_path} : "\(/.*\)/etc/rc\.d/${rc_file}\$"); then
- echo "${rc_file}: Cannot determine PREFIX." >&2
- echo "Please use the complete pathname." >&2
- exit 64
-fi
-
-rcconf_dir=${PREFIX}/etc
-rcconf_file=rc.${rc_file%.sh}.conf
-rcconf_path=${rcconf_dir}/${rcconf_file}
-
-if [ -f ${rcconf_path} ]; then
- set -a
- . ${rcconf_path}
- set +a
-fi
-
-program_dir=${PREFIX}/sbin
-program_file=${rc_file%.sh}
-program_path=${program_dir}/${program_file}
-export program_path
-
-common_args="\
-${seti_proxy_server:+-proxy} ${seti_proxy_server} \
-${seti_socks_server:+-socks_server} ${seti_socks_server} \
-${seti_socks_user:+-socks_user} ${seti_socks_user} \
-${seti_socks_passwd:+-socks_passwd} ${seti_socks_passwd} \
-${seti_nice:+-nice} ${seti_nice} \
-"
-
-program_args="${seti_std_args} ${common_args}"
-export program_args
-register_args="${seti_reg_args} ${common_args}"
-
-wrapper_dir=${PREFIX}/libexec
-wrapper_file=${rc_file%.sh}.bin
-wrapper_path=${wrapper_dir}/${wrapper_file}
-
-syslog_facility=daemon.err
-
-i=${seti_maxprocs}
-seti_wrksuff="."
-while [ ${i} -gt 1 ]; do
- seti_wrksuff="${seti_wrksuff} ${i}"
- i=$((${i} - 1))
-done
-export seti_wrksuff
-
-case "$rc_arg" in
-start)
- if [ ! -x ${program_path} ]; then
- logger -sp ${syslog_facility} -t ${program_file} \
- "unable to start: ${program_path} is missing."
- exit 72
- fi
- if [ ! -x ${wrapper_path} ]; then
- logger -sp ${syslog_facility} -t ${wrapper_file} \
- "unable to start: ${wrapper_path} is missing."
- exit 72
- fi
- for i in ${seti_wrksuff}; do
- if [ ! -d ${seti_wrkdir}/${i} ]; then
- logger -sp ${syslog_facility} -t ${program_file} \
- "unable to start: ${seti_wrkdir}/${i} is missing."
- exit 72
- fi
- if [ ! -f ${seti_wrkdir}/${i}/user_info.sah ]; then
- logger -sp ${syslog_facility} -t ${program_file} \
- "unable to start: please log in to SETI@home first" \
- "(${seti_wrkdir}/${i}/user_info.sah is missing)."
- logger -sp ${syslog_facility} -t ${program_file} \
- "run \"$0 register\" to accomplish this."
- exit 72
- fi
- done
- if ps axo ucomm | egrep ${program_file}; then
- logger -sp ${syslog_facility} -t ${program_file} \
- "unable to start: ${program_file} is already running."
- exit 72
- fi
- su -fm ${seti_user} -c "exec ${wrapper_path} > /dev/null &"
- echo -n " SETI@home"
- ;;
-
-stop)
- pid_path=${seti_wrkdir}/shpid.sah
- if [ -f ${pid_path} ]; then
- pid=$(cat ${pid_path})
- [ -n "${pid}" ] && ps p ${pid} > /dev/null && kill ${pid}
- rm -f ${pid_path}
- fi
- for i in ${seti_wrksuff}; do
- pid_path=${seti_wrkdir}/${i}/pid.sah
- if [ -f ${pid_path} ]; then
- pid=$(cat ${pid_path})
- [ -n "${pid}" ] && ps p ${pid} > /dev/null && kill ${pid}
- fi
- done
- if [ ! -f ${seti_wrkdir}/pid.sah ]; then
- killall ${program_file} 2> /dev/null
- fi
- ;;
-
-gracefull)
- for i in ${seti_wrksuff}; do
- pid_path=${seti_wrkdir}/${i}/pid.sah
- stop_path=${seti_wrkdir}/${i}/stop_after_send.txt
- if [ -f ${pid_path} ]; then
- touch ${stop_path}
- fi
- done
- ;;
-
-restart)
- $0 stop
- $0 start
- ;;
-
-status)
- ps auxww | egrep ${program_file} | egrep -v "($0|egrep)"
- ;;
-
-register)
- if [ ! -x ${program_path} ]; then
- echo "${program_file}:" \
- "unable to register: ${program_path} is missing." >&2
- exit 72
- fi
- if pw group show "${seti_group}" 2>/dev/null; then
- echo "You already have a group \"${seti_group}\"," \
- "so I will use it."
- elif pw groupadd ${seti_group} -h -; then
- echo "Added group \"${seti_group}\"."
- else
- echo "Adding group \"${seti_group}\" failed..."
- echo "Please create it, and try again."
- exit 1
- fi
- if pw user show "${seti_user}" 2>/dev/null; then
- echo "You already have a user \"${seti_user}\"," \
- "so I will use it."
- if pw usermod ${seti_user} -d ${seti_wrkdir}; then
- echo "Changed home directory of \"${seti_user}\"" \
- "to \"${seti_wrkdir}\""
- else
- echo "Changing home directory of \"${seti_user}\"" \
- "to \"${setu_wrkdir}\" failed..."
- exit 1
- fi
- elif pw useradd ${seti_user} -g ${seti_group} -h - \
- -d ${seti_wrkdir} -s /sbin/nologin -c "SETI at home Daemon"; then
- echo "Added user \"${seti_user}\"."
- else
- echo "Adding user \"${seti_user}\" failed..."
- echo "Please create it, and try again."
- exit 1
- fi
- # Create or update primary working directory (in case the uid changed)
- mkdir -p ${seti_wrkdir} || exit
- chown -Rh ${seti_user}:${seti_group} ${seti_wrkdir} || exit
- chmod u=Xrw,g=Xr,o=Xr ${seti_wrkdir} || exit
- seti_dontlogin=no
- if [ -f ${seti_wrkdir}/user_info.sah ]; then
- echo " It seems you have already registered with" \
- "SETI@home. Would you"
- echo -n " like to repeat the procedure? [Y/n] "
- read a
- if [ "X${a}" = "Xn" -o "X${a}" = "XN" ]; then
- seti_dontlogin=yes
- fi
- fi
- # No need to register if we've already done so
- if [ "X${seti_dontlogin}" != "Xyes" ]; then
- su -fm ${seti_user} -c "\
- cd ${seti_wrkdir} && \
- exec ${program_path} ${register_args}"
- fi
- if [ ${seti_maxprocs} -gt 1 ]; then
- echo " Updating additional working directories."
- i=${seti_maxprocs}
- while [ ${i} -gt 1 ]; do
- mkdir -p ${seti_wrkdir}/${i}
- chown ${seti_user} ${seti_wrkdir}/${i}
- chmod 755 ${seti_wrkdir}/${i}
- # Assume the user want's all processes to run
- # with the same registration
- rm -f ${seti_wrkdir}/${i}/user_info.sah
- ln -sf ../user_info.sah ${seti_wrkdir}/${i}
- i=$((${i} - 1))
- done
- fi
- ;;
-
-*)
- echo "usage: ${rc_file} {start|stop|gracefull|restart|status|register}" >&2
- exit 64
- ;;
-esac
diff --git a/astro/setiathome/files/xsetiathome.1 b/astro/setiathome/files/xsetiathome.1
deleted file mode 100644
index 0b0f224452d4..000000000000
--- a/astro/setiathome/files/xsetiathome.1
+++ /dev/null
@@ -1,84 +0,0 @@
-.\" $FreeBSD$
-.\"
-.Dd Dec 12, 2000
-.Dt xsetiathome 1 LOCAL
-.Os FreeBSD
-.Sh NAME
-.Nm xsetiathome
-.Nd display SETI data under X Windows
-.Sh SYNOPSIS
-.Nm
-.Op Fl fullscreen
-.Sh DESCRIPTION
-.Nm
-is a graphical display for
-.Xr setiathome 1 .
-To use it you must run
-.Xr setiathome 1
-with the
-.Fl graphics
-flag.
-.Pp
-A typical invocation of
-.Nm
-will look like this:
-.Bd -literal -offset indent
-% setiathome -graphics &
-% xsetiathome
-.Ed
-.Pp
-Alternatively,
-.Nm
-can be executed in screensaver mode,
-which requires an external application such as
-.Xr xautolock 1 .
-.Sh OPTIONS
-.Bl -tag -width fullscreenx
-.It Fl fullscreen
-Take over the entire display.
-When running in this mode, any mouse presses will exit the application.
-.El
-.Sh SEE ALSO
-.Xr setiathome 1 ,
-.Xr xautolock 1 ,
-.Xr ipcs 1 ,
-.Xr ipcrm 1 .
-.Sh BUGS
-Please note, this
-.Nm
-binary is an initial experiment.
-We are fully aware that it may have some significant bugs and
-we are continuing to work on it.
-Please do not report bugs on this binary at this time.
-.Pp
-Only one instance of
-.Ic setiathome -graphics
-can be operating at any one time on a system.
-There is no conflict resolution with the allocated shared memory
-segments and semaphores.
-Therefore, only one instance of
-.Nm
-is practical.
-.Pp
-Outstanding shared memory segments and semaphores may be left
-active in case of an abnormal exit of the
-.Ic setiathome -graphics
-process.
-These can prevent any future invocation of
-.Ic setiathome -graphics .
-To resolve this problem, use
-.Xr ipcs 1
-and
-.Xr ipcrm 1
-to remove shared memory segments and semaphores that
-are not associated with a process.
-This behavior may vary depending upon how your
-.Ux
-system handles this situation.
-.Pp
-The
-.Nm
-process may affect system performance adversely.
-This behavior may vary depending upon your version of the
-X11 Window System client libraries and/or your X server
-and its operating mode/visual depth.