sm-grimoire-bugs AT lists.ibiblio.org
Subject: SourceMage Grimoire Bug List
List archive
[SM-Grimoire-Bugs] [Bug 10509] init.d: delete stale pid files at boot
- From: bugzilla-daemon AT bugs.sourcemage.org
- To: sm-grimoire-bugs AT lists.ibiblio.org
- Subject: [SM-Grimoire-Bugs] [Bug 10509] init.d: delete stale pid files at boot
- Date: 25 Feb 2006 10:42:13 -0000
http://bugs.sourcemage.org/show_bug.cgi?id=10509
------- Additional Comments From v.merkatz AT gmx.net 2006-02-25 04:42 -------
Here's the one I just wrote when you mentioned it on irc:
function recursive_rm() {
cd "$1"
for i in *; do
if test -d "$i"; then
recursive_rm "$i"
elif test -f "$i"; then
rm "$i";
fi
done
cd ..
}
This only removes regular files, not sure if there's more to check for (named
pipes, symlinks, ...). As everything except 'rm' is bash builtin it's quite
fast
(just replace the rm by echo and run it on a big dir > /dev/null to see).
--
Configure bugmail: http://bugs.sourcemage.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
-
[SM-Grimoire-Bugs] [Bug 10509] init.d: delete stale pid files at boot
, (continued)
- [SM-Grimoire-Bugs] [Bug 10509] init.d: delete stale pid files at boot, bugzilla-daemon, 02/14/2006
- [SM-Grimoire-Bugs] [Bug 10509] init.d: delete stale pid files at boot, bugzilla-daemon, 02/14/2006
- [SM-Grimoire-Bugs] [Bug 10509] init.d: delete stale pid files at boot, bugzilla-daemon, 02/14/2006
- [SM-Grimoire-Bugs] [Bug 10509] init.d: delete stale pid files at boot, bugzilla-daemon, 02/14/2006
- [SM-Grimoire-Bugs] [Bug 10509] init.d: delete stale pid files at boot, bugzilla-daemon, 02/15/2006
- [SM-Grimoire-Bugs] [Bug 10509] init.d: delete stale pid files at boot, bugzilla-daemon, 02/15/2006
- [SM-Grimoire-Bugs] [Bug 10509] init.d: delete stale pid files at boot, bugzilla-daemon, 02/24/2006
- [SM-Grimoire-Bugs] [Bug 10509] init.d: delete stale pid files at boot, bugzilla-daemon, 02/24/2006
- [SM-Grimoire-Bugs] [Bug 10509] init.d: delete stale pid files at boot, bugzilla-daemon, 02/24/2006
- [SM-Grimoire-Bugs] [Bug 10509] init.d: delete stale pid files at boot, bugzilla-daemon, 02/25/2006
- [SM-Grimoire-Bugs] [Bug 10509] init.d: delete stale pid files at boot, bugzilla-daemon, 02/25/2006
- [SM-Grimoire-Bugs] [Bug 10509] init.d: delete stale pid files at boot, bugzilla-daemon, 02/25/2006
- [SM-Grimoire-Bugs] [Bug 10509] init.d: delete stale pid files at boot, bugzilla-daemon, 02/25/2006
- [SM-Grimoire-Bugs] [Bug 10509] init.d: delete stale pid files at boot, bugzilla-daemon, 02/25/2006
- [SM-Grimoire-Bugs] [Bug 10509] init.d: delete stale pid files at boot, bugzilla-daemon, 02/25/2006
- [SM-Grimoire-Bugs] [Bug 10509] init.d: delete stale pid files at boot, bugzilla-daemon, 02/25/2006
Archive powered by MHonArc 2.6.24.