Changeset 427


Ignore:
Timestamp:
06/23/12 14:29:08 (12 years ago)
Author:
nanardon
Message:
  • add sysinit for sophie-notify
Location:
tools/trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • tools/trunk/MANIFEST

    r413 r427  
    1313lib/Sophie/Client.pm 
    1414sophie-tools.spec.in 
     15sysinit/sophie-notify 
  • tools/trunk/bin/sophie-notify

    r426 r427  
    33use strict; 
    44use warnings; 
     5use FindBin; 
     6use lib "$FindBin::Bin/../lib"; 
    57use Linux::Inotify2; 
    68use POSIX ":sys_wait_h"; 
     
    1012use Pod::Usage; 
    1113use Sys::Syslog; 
     14 
    1215 
    1316$ENV{LC_ALL} = 'C'; 
     
    5659        exit(0); 
    5760    } 
     61    warn "Fork done, entering daemon mode\n"; 
    5862} 
    5963 
     
    6367        close($handle); 
    6468    } else { 
     69        die "Can't write pidfile $pidfile, exiting :\\\n"; 
    6570    } 
    6671} 
     
    135140    my $res = $sc->send_request('admin.update.paths'); 
    136141    if (ref $res && !$res->is_fault) { 
     142        # strange error probably due to server bug 
     143        ref $res->value eq 'ARRAY' or return; 
    137144        @paths = grep { -d $_ } map { $_->{path} } @{ $res->value }; 
    138145    } else { 
  • tools/trunk/sophie-tools.spec.in

    r405 r427  
    3838%makeinstall_std 
    3939 
     40mkdir -p %buildroot/etc/init.d 
     41install -m755 sysinit/sophie-notify %buildroot/etc/init.d/sophie-notify 
     42 
    4043%clean 
    4144rm -rf %buildroot 
     
    4447%defattr(-,root,root) 
    4548%doc Changes README 
     49/etc/init.d/sophie-notify 
    4650%_bindir/* 
    4751%{_mandir}/*/* 
Note: See TracChangeset for help on using the changeset viewer.