packages: python-celery/python-celery.spec

cieciwa cieciwa at pld-linux.org
Tue May 24 14:42:15 CEST 2011


Author: cieciwa                      Date: Tue May 24 12:42:15 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:


---- Files affected:
packages/python-celery:
   python-celery.spec (1.4 -> 1.5) 

---- Diffs:

================================================================
Index: packages/python-celery/python-celery.spec
diff -u packages/python-celery/python-celery.spec:1.4 packages/python-celery/python-celery.spec:1.5
--- packages/python-celery/python-celery.spec:1.4	Mon May 23 13:52:13 2011
+++ packages/python-celery/python-celery.spec	Tue May 24 14:42:10 2011
@@ -35,11 +35,42 @@
 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
+install -d $RPM_BUILD_ROOT/etc/{sysconfig,rc.d/init.d}
+cp -a contrib/generic-init.d/* $RPM_BUILD_ROOT/etc/rc.d/init.d/
+
+cat > $RPM_BUILD_ROOT/etc/sysconfig/celeryd << EOF
+#   # List of nodes to start
+#   CELERYD_NODES="worker1 worker2 worker3"k
+#   # ... can also be a number of workers
+#   CELERYD_NODES=3
+#
+#   # Where to chdir at start.
+#   CELERYD_CHDIR="/opt/Myproject/"
+#
+#   # Extra arguments to celeryd
+#   CELERYD_OPTS="--time-limit=300"
+#
+#   # Name of the celery config module.#
+#   CELERY_CONFIG_MODULE="celeryconfig"
+EOF
+
 %py_postclean
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%pre
+%useradd -u 1111 -r -s /bin/fafse "celery user" celery
+
+%preun
+/etc/init.d/rc.d/%{name}d stop
+
+%post
+echo "Use: \"/etc/init.d/rc.d/%{name}d start\" to start celry."
+
+%postun
+%userremove celery
+
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS README* THANKS TODO
@@ -49,6 +80,10 @@
 %attr(755,root,root) %{_bindir}/celeryd
 %attr(755,root,root) %{_bindir}/celeryd-multi
 %attr(755,root,root) %{_bindir}/celeryev
+
+%attr(744,root,root) /etc/rc.d/init.d/*
+%attr(644,root,root) /etc/sysconfig/*
+
 %{py_sitescriptdir}/%{module}
 %if "%{py_ver}" > "2.4"
 %{py_sitescriptdir}/celery-*.egg-info
@@ -64,6 +99,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.5  2011/05/24 12:42:10  cieciwa
+*** empty log message ***
+
 Revision 1.4  2011/05/23 11:52:13  glen
 - cleanup template junk
 - build noarch package, fixed executable perms and dir perms
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/python-celery/python-celery.spec?r1=1.4&r2=1.5&f=u



More information about the pld-cvs-commit mailing list