<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>183368</bug_id>
          
          <creation_ts>2007-06-27 06:52 0000</creation_ts>
          <short_desc>net-p2p/amule-2.1.3: Initscript tries to remove pid-file even if it does&apos;n exist</short_desc>
          <delta_ts>2007-07-23 12:07:56 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>trivial</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>maus.david@gmx.de</reporter>
          <assigned_to>net-p2p@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>maus.david@gmx.de</who>
            <bug_when>2007-06-27 06:52:55 0000</bug_when>
            <thetext>The initscript /etc/init.d/amuled tries to remove an old pid-file on startup without checking for it&apos;s existance. So if there is no old pid-file of amuled the errormessage of the rm-command is displayed. 

Reproducible: Always

Steps to Reproduce:
1. /etc/init.d/amuled start
2. rm complains about &quot;no such file or directory&quot;

Actual Results:  
/etc/init.d/amuled displays errormessage of rm not being able to remove an old pidfile, that does not exist

Expected Results:  
if there&apos;s no old pidfile /var/run/amuled the initscript should not try to remove it :)

A simple check if [ -e /var/run/amuled.pid ]; then rm /var/run/amuled.pid fi should do it.

emerge --info

Portage 2.1.2.7 (default-linux/amd64/2007.0, gcc-4.1.2, glibc-2.5-r3, 2.6.20-gentoo-r7 x86_64)
=================================================================
System uname: 2.6.20-gentoo-r7 x86_64 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System release 1.12.9
Timestamp of tree: Wed, 27 Jun 2007 05:50:01 +0000
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS=&quot;amd64&quot;
AUTOCLEAN=&quot;yes&quot;
CBUILD=&quot;x86_64-pc-linux-gnu&quot;
CFLAGS=&quot;-O2 -pipe&quot;
CHOST=&quot;x86_64-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config&quot;
CONFIG_PROTECT_MASK=&quot;/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c&quot;
CXXFLAGS=&quot;-O2 -pipe&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;distlocks metadata-transfer parallel-fetch sandbox sfperms strict userfetch userpriv usersandbox&quot;
GENTOO_MIRRORS=&quot;http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ &quot;
LANG=&quot;en_EN&quot;
LC_ALL=&quot;de_DE.utf8&quot;
LINGUAS=&quot;de&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_RSYNC_OPTS=&quot;--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/portage/local/layman/sunrise /usr/portage/local/layman/science&quot;
SYNC=&quot;rsync://rsync.europe.gentoo.org/gentoo-portage&quot;
USE=&quot;X a52 aac acl acpi alsa amd64 avahi bash-completion berkdb bitmap-fonts bzip2 cairo cli cracklib crypt cups dbus dga dri dv dvd dvdnav fortran gdbm gif glitz hal iconv isdnlog ithreads jikes jpeg libg++ libnotify lzo mad midi mmx mp3 mudflap ncurses nptl nptlonly ogg opengl openmp pam pcre perl png pppd python quicktime rar readline reflection session spl sse sse2 ssl startup-notification svg tcpd theora threads tiff truetype truetype-fonts type1-fonts unicode vorbis x264 xorg xv xvid zlib&quot; ALSA_CARDS=&quot;via82xx&quot; ALSA_PCM_PLUGINS=&quot;adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol&quot; ELIBC=&quot;glibc&quot; INPUT_DEVICES=&quot;mouse keyboard&quot; KERNEL=&quot;linux&quot; LCD_DEVICES=&quot;bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text&quot; LINGUAS=&quot;de&quot; USERLAND=&quot;GNU&quot; VIDEO_CARDS=&quot;radeon&quot;
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>armin76@gentoo.org</who>
            <bug_when>2007-07-23 12:07:56 0000</bug_when>
            <thetext>Fixed, thanks.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>