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 Prereq: /sbin/chkconfig
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 daemontools is a collection of tools for managing UNIX services.
19 supervise monitors a service. It starts the service and restarts the
20 service if it dies. Setting up a new service is easy: all supervise
21 needs is a directory with a run script that runs the service.
23 multilog saves error messages to one or more logs. It optionally
24 timestamps each line and, for each log, includes or excludes lines
25 matching specified patterns. It automatically rotates logs to limit
26 the amount of disk space used. If the disk fills up, it pauses and
27 tries again, without losing any data.
30 daemontools jest zestawem narzêdzi do zarz±dzania servisami UNIX'owymi
32 supervise monitoruje servisy. Startuje servisy i restartuje je, gdy
33 "umr±". Ustawienie nowego servisu jest proste: wszystko czego
34 supervise potrzebuje to katalog ze skryptami startowymi, które
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 robi
40 rotating logów do limitu miejsca na dysku. Je¿eli dysk jest
41 zape³niony, robi pauzê i próbuje ponownie, bez strat danych.
44 %setup -q -n admin/%{name}-%{version}
52 echo %{_sbindir} > src/conf-home
57 rm -rf $RPM_BUILD_ROOT
58 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8} \
59 $RPM_BUILD_ROOT%{_sysconfdir}/{rc.d/init.d,sysconfig} \
60 $RPM_BUILD_ROOT/var/lib/service $RPM_BUILD_ROOT/service
64 install envdir envuidgid fghack multilog pgrphack \
65 readproctitle setlock setuidgid softlimit \
66 supervise svc svok svscan svscanboot svstat tai64n tai64nlocal \
67 $RPM_BUILD_ROOT%{_sbindir}
71 install %{name}-man/*.8* $RPM_BUILD_ROOT%{_mandir}/man8
73 # install rc & sysconfig files
74 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/svscan
75 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/svscan
78 rm -rf $RPM_BUILD_ROOT
81 /sbin/chkconfig --add svscan
82 if [ -f /var/lock/subsys/svscan ]; then
83 /etc/rc.d/init.d/svscan restart >&2
85 echo "Execute \"/etc/rc.d/init.d/svscan start\" to start svscan daemon."
89 if [ "$1" = "0" ]; then
90 if [ -f /var/lock/subsys/svscan ]; then
91 /etc/rc.d/init.d/svscan stop >&2
93 /sbin/chkconfig --del svscan
97 %defattr(644,root,root,755)
99 %attr(755,root,root) %{_sbindir}/*
100 %attr(700,root,root) /service
101 %attr(700,root,root) /var/lib/service
102 %attr(754,root,root) /etc/rc.d/init.d/svscan
103 %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/svscan