1 Summary: D. J. Bernstein daemontools
2 Summary(pl): daemontools'y D. J. Bernstein'a
6 Copyright: D. J. Bernstein
7 Group: Networking/Admin
8 Group(de): Netzwerkwesen/Administration
9 Group(pl): Sieciowe/Administracyjne
10 Source0: http://cr.yp.to/%{name}/%{name}-%{version}.tar.gz
11 Source1: ftp://ftp.innominate.org/pub/pape/djb/%{name}-%{version}-man.tar.gz
12 Source2: %{name}.sysconfig
14 Patch0: %{name}-time.patch
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 daemontools is a collection of tools for managing UNIX services.
20 supervise monitors a service. It starts the service and restarts the
21 service if it dies. Setting up a new service is easy: all supervise
22 needs is a directory with a run script that runs the service.
24 multilog saves error messages to one or more logs. It optionally
25 timestamps each line and, for each log, includes or excludes lines
26 matching specified patterns. It automatically rotates logs to limit
27 the amount of disk space used. If the disk fills up, it pauses and
28 tries again, without losing any data.
31 daemontools jest zestawem narzêdzi do zarz±dzania servisami UNIX'owymi
33 supervise monitoruje servisy. Startuje servisy i restartuje je, gdy
34 "umr±". Ustawienie nowego servisu jest proste: wszystko czego supervise
35 potrzebuje to katalog ze skryptami startowymi, które startuj± servisy.
37 multilog zapisuje komunikaty o b³êdach do jednego lub wiêcej log'u.
38 Opcjonalnie stempluje ka¿d± liniê dat± oraz, w ka¿dym logu, do³±cza
39 lub wy³±cza linie pasuj±ce do okre¶lonych wzorców. Automatycznie
40 robi rotating logów do limitu miejsca na dysku. Je¿eli dysk jest
41 zape³niony, robi pauzê i próbuje ponownie, bez strat danych.
49 echo %{_bindir} >conf-home
54 rm -rf $RPM_BUILD_ROOT
55 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8} \
56 $RPM_BUILD_ROOT%{_sysconfdir}/{rc.d/init.d,sysconfig} \
57 $RPM_BUILD_ROOT/var/{run/service,lib/service}
59 install envdir envuidgid fghack multilog setlock setuidgid softlimit \
60 supervise supervise svc svok svscan svstat tai64n tai64nlocal \
61 $RPM_BUILD_ROOT%{_sbindir}
62 install %{name}-%{version}-man/*.8* $RPM_BUILD_ROOT%{_mandir}/man8
63 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/svscan
64 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/svscan
66 gzip -9nf CHANGES README TODO
69 rm -rf $RPM_BUILD_ROOT
72 /sbin/chkconfig --add svscan
73 if [ -f /var/lock/subsys/svscan ]; then
74 /etc/rc.d/init.d/svscan restart >&2
76 echo "Execute \"/etc/rc.d/init.d/svscan\" to start svscan daemon."
80 if [ "$1" = "0" ]; then
81 if [ -f /var/lock/subsys/svscan ]; then
82 /etc/rc.d/init.d/svscan stop >&2
84 /sbin/chkconfig --del svscan
88 %defattr(644,root,root,755)
90 %attr(755,root,root) %{_sbindir}/*
91 %attr(700,root,root) /var/run/service
92 %attr(700,root,root) /var/lib/service
93 %attr(754,root,root) /etc/rc.d/init.d/svscan
94 %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/svscan