1 Summary: D. J. Bernstein daemontools
2 Summary(pl): daemontools D. J. Bernstein
7 Group: Networking/Admin
8 Source0: http://cr.yp.to/%{name}/%{name}-%{version}.tar.gz
9 Source1: http://smarden.org/pape/djb/manpages/%{name}-%{version}-man.tar.gz
10 Source2: %{name}.sysconfig
12 Patch0: %{name}-glibc.patch
13 URL: http://cr.yp.to/daemontools.html
14 Prereq: /sbin/chkconfig
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
35 supervise potrzebuje to katalog ze skryptami startowymi, które
38 multilog zapisuje komunikaty o b³êdach do jednego lub wiêcej log'u.
39 Opcjonalnie stempluje ka¿d± liniê dat± oraz, w ka¿dym logu, do³±cza
40 lub wy³±cza linie pasuj±ce do okre¶lonych wzorców. Automatycznie robi
41 rotating logów do limitu miejsca na dysku. Je¿eli dysk jest
42 zape³niony, robi pauzê i próbuje ponownie, bez strat danych.
45 %setup -q -n admin/%{name}-%{version}
53 echo %{_sbindir} > src/conf-home
58 rm -rf $RPM_BUILD_ROOT
59 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8} \
60 $RPM_BUILD_ROOT%{_sysconfdir}/{rc.d/init.d,sysconfig} \
61 $RPM_BUILD_ROOT/var/lib/service $RPM_BUILD_ROOT/service
65 install envdir envuidgid fghack multilog pgrphack \
66 readproctitle setlock setuidgid softlimit \
67 supervise svc svok svscan svscanboot svstat tai64n tai64nlocal \
68 $RPM_BUILD_ROOT%{_sbindir}
72 install %{name}-man/*.8* $RPM_BUILD_ROOT%{_mandir}/man8
74 # install rc & sysconfig files
75 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/svscan
76 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/svscan
79 rm -rf $RPM_BUILD_ROOT
82 /sbin/chkconfig --add svscan
83 if [ -f /var/lock/subsys/svscan ]; then
84 /etc/rc.d/init.d/svscan restart >&2
86 echo "Execute \"/etc/rc.d/init.d/svscan start\" to start svscan daemon."
90 if [ "$1" = "0" ]; then
91 if [ -f /var/lock/subsys/svscan ]; then
92 /etc/rc.d/init.d/svscan stop >&2
94 /sbin/chkconfig --del svscan
98 %defattr(644,root,root,755)
100 %attr(755,root,root) %{_sbindir}/*
101 %attr(700,root,root) /service
102 %attr(700,root,root) /var/lib/service
103 %attr(754,root,root) /etc/rc.d/init.d/svscan
104 %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/svscan