Mike's Script Archive : findrc
findrc - Find all /etc/rc.d files related to an application
NAME
findrc - Find all /etc/rc.d files related to an application
findrc
SYNOPSIS
findrc appname (e.g. 'network')
findrc
traverses the files under /etc/rc.d and searches for all
start/stop files related to an application.
EXAMPLES
# Find all network start/stop files
$ findrc network
/etc/rc.d/rc5.d/S10network
/etc/rc.d/rc4.d/S10network
/etc/rc.d/rc6.d/K90network
/etc/rc.d/rc3.d/S10network
/etc/rc.d/rc2.d/S10network
/etc/rc.d/init.d/network
/etc/rc.d/rc0.d/K90network
/etc/rc.d/rc1.d/K90network
# Delete them all
# findrc network | xargs rm
Copyright 2008 by Mike Schilli, all rights reserved.
This program is free software, you can redistribute it and/or
modify it under the same terms as Perl itself.
2008, Mike Schilli <cpan@perlmeister.com >