rpms/beanstalkd/F-10 beanstalkd.1, NONE, 1.1 beanstalkd.init, NONE, 1.1 beanstalkd.spec, NONE, 1.1 beanstalkd.sysconfig, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
Jeremy Hinegardner
jjh at fedoraproject.org
Wed Dec 31 05:11:51 UTC 2008
- Previous message (by thread): rpms/beanstalkd/devel beanstalkd.1, NONE, 1.1 beanstalkd.init, NONE, 1.1 beanstalkd.spec, NONE, 1.1 beanstalkd.sysconfig, NONE, 1.1 import.log, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Next message (by thread): rpms/beanstalkd/F-9 beanstalkd.1, NONE, 1.1 beanstalkd.init, NONE, 1.1 beanstalkd.spec, NONE, 1.1 beanstalkd.sysconfig, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: jjh
Update of /cvs/pkgs/rpms/beanstalkd/F-10
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv30405
Modified Files:
.cvsignore sources
Added Files:
beanstalkd.1 beanstalkd.init beanstalkd.spec
beanstalkd.sysconfig
Log Message:
initial import of beanstalkd
--- NEW FILE beanstalkd.1 ---
.TH BEANSTALKD 1 "November 21, 2008"
.SH NAME
beastalkd \- A fast, distributed, in-memory work-queue service
.SH SYNOPSIS
.B beanstalkd
.RI [ options ]
.br
.SH DESCRIPTION
This manual page documents briefly the
.B beanstalkd
work-queue service
.PP
.B beanstalkd
is a fast, distributed, in-memory work-queue service. Its
interface is generic, but was originally designed for reducing the
latency of page views in high-volume web applications by running most
time-consuming tasks asynchronously.
.br
.SH OPTIONS
These programs follow the usual GNU command line syntax. A summary of options
is included below.
.TP
.B \-d
Detach and run beanstalkd as a daemon.
.TP
.B \-l <addr>
Listen on address ADDR (default is 0.0.0.0)
.TP
.B \-u <user>
Become the user USER and its primary group.
.TP
.B \-p <port>
Listen on TCP port PORT (default is 11300).
.TP
.B \-z <size>
The maximum size in bytes of a job.
.TP
.B \-h
Show the command line help and summary of options.
.TP
.SH LICENSE
The beanstalkd daemon is copyright Keith Rarick and Philotic Inc. and is
distributed under the GNU General Public License version 3 or later.
.br
.SH SEE ALSO
The README file that comes with beanstalkd
.br
.B http://xph.us/software/beanstalkd/
.SH AUTHOR
The beanstalkd daemon was written by Keith Rarick and Philotic Inc.
.br
--- NEW FILE beanstalkd.init ---
#!/bin/sh
#
# beanstalkd - a fast, distributed, in-memory workqueue service
#
# chkconfig: - 57 47
# description: a fast, distributed, in-memory workqueue service
# processname: beanstalkd
# config: /etc/sysconfig/beanstalkd
#
# Source function library.
. /etc/rc.d/init.d/functions
# Source networking configuration.
. /etc/sysconfig/network
# Check that networking is up.
[ "$NETWORKING" = "no" ] && exit
exec="/usr/bin/beanstalkd"
prog=$(basename $exec)
# default options, overruled by items in sysconfig
BEANSTALKD_ADDR=0.0.0.0
BEANSTALKD_PORT=11300
BEANSTALKD_USER=beanstalkd
[ -e /etc/sysconfig/beanstalkd ] && . /etc/sysconfig/beanstalkd
lockfile=/var/lock/subsys/beanstalkd
start() {
[ -x $exec ] || exit 5
echo -n $"Starting $prog: "
# if not running, start it up here, usually something like "daemon $exec"
options="-l ${BEANSTALKD_ADDR} -p ${BEANSTALKD_PORT} -u ${BEANSTALKD_USER}"
if [ "${BEANSTALKD_JOB_SIZE}" != "" ]; then
options="${options} -z ${BEANSTALKD_JOB_SIZE}"
fi
daemon $exec -d $options
retval=$?
echo
[ $retval -eq 0 ] && touch $lockfile
return $retval
}
stop() {
echo -n $"Stopping $prog: "
# stop it here, often "killproc $prog"
killproc $prog -INT
retval=$?
echo
[ $retval -eq 0 ] && rm -f $lockfile
return $retval
}
restart() {
stop
start
}
reload() {
restart
}
force_reload() {
restart
}
rh_status() {
# run checks to determine if the service is running or use generic status
status $prog
}
rh_status_q() {
rh_status >/dev/null 2>&1
}
case "$1" in
start)
rh_status_q && exit 0
$1
;;
stop)
rh_status_q || exit 0
$1
;;
restart)
$1
;;
reload)
rh_status_q || exit 7
$1
;;
force-reload)
force_reload
;;
status)
rh_status
;;
condrestart|try-restart)
rh_status_q || exit 0
restart
;;
*)
echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
exit 2
esac
exit $?
--- NEW FILE beanstalkd.spec ---
%define beanstalkd_user beanstalkd
%define beanstalkd_group %{beanstalkd_user}
%define beanstalkd_home %{_localstatedir}/lib/beanstalkd
%define beanstalkd_logdir %{_localstatedir}/log/beanstalkd
Name: beanstalkd
Version: 1.1
Release: 1%{?dist}
Summary: A fast, distributed, in-memory workqueue service
Group: System Environment/Daemons
License: GPLv3+
URL: http://xph.us/software/%{name}/
Source0: http://xph.us/software/%{name}/rel/%{name}-%{version}.tar.gz
Source1: %{name}.1
Source2: %{name}.init
Source3: %{name}.sysconfig
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: libevent-devel
Requires(pre): %{_sbindir}/useradd
Requires(post): /sbin/chkconfig
Requires(preun): /sbin/chkconfig, /sbin/service
Requires(postun): /sbin/service
%description
beanstalkd is a fast, distributed, in-memory workqueue service. Its
interface is generic, but was originally designed for reducing the
latency of page views in high-volume web applications by running most
time-consuming tasks asynchronously.
%prep
%setup -q
%build
%configure --disable-rpath
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
%{__install} -p -D -m 0644 %{SOURCE1} %{buildroot}%{_mandir}/man1/%{name}.1
%{__install} -p -D -m 0755 %{SOURCE2} %{buildroot}%{_initrddir}/%{name}
%{__install} -p -D -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/sysconfig/%{name}
%clean
rm -rf $RPM_BUILD_ROOT
%pre
%{_sbindir}/useradd -c "beanstalkd user" -s /bin/false -r -d %{beanstalkd_home} %{beanstalkd_user} 2>/dev/null || :
%post
/sbin/chkconfig --add %{name}
%preun
if [ $1 = 0 ]; then
/sbin/service %{name} stop >/dev/null 2>&1
/sbin/chkconfig --del %{name}
fi
%postun
if [ $1 -ge 1 ]; then
/sbin/service %{name} condrestart > /dev/null 2>&1 || :
fi
%files
%defattr(-,root,root,-)
%doc README COPYING
%{_initrddir}/%{name}
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1.gz
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
%changelog
* Sat Nov 22 2008 Jeremy Hinegardner <jeremy at hinegardner dot org> - 1.1-1
- initial spec creation
--- NEW FILE beanstalkd.sysconfig ---
# System configuration for the beanstalkd daemon
# Available options correspond to the options to the
# beanstalkd commandline.
BEANSTALKD_ADDR=0.0.0.0
BEANSTALKD_PORT=11300
BEANSTALKD_USER=beanstalkd
# Job size is left to the default. Uncomment and set it
# to a value to have it take affect.
#BEANSTALKD_JOB_SIZE=
Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/beanstalkd/F-10/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 5 Dec 2008 05:11:50 -0000 1.1
+++ .cvsignore 31 Dec 2008 05:11:20 -0000 1.2
@@ -0,0 +1 @@
+beanstalkd-1.1.tar.gz
Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/beanstalkd/F-10/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 5 Dec 2008 05:11:50 -0000 1.1
+++ sources 31 Dec 2008 05:11:20 -0000 1.2
@@ -0,0 +1 @@
+36be022bb59545df51b537f0e423d2d6 beanstalkd-1.1.tar.gz
- Previous message (by thread): rpms/beanstalkd/devel beanstalkd.1, NONE, 1.1 beanstalkd.init, NONE, 1.1 beanstalkd.spec, NONE, 1.1 beanstalkd.sysconfig, NONE, 1.1 import.log, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Next message (by thread): rpms/beanstalkd/F-9 beanstalkd.1, NONE, 1.1 beanstalkd.init, NONE, 1.1 beanstalkd.spec, NONE, 1.1 beanstalkd.sysconfig, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list