https://bugzilla.novell.com/show_bug.cgi?id=723708 https://bugzilla.novell.com/show_bug.cgi?id=723708#c0 Summary: checkproc returns wrong values Classification: openSUSE Product: openSUSE 12.1 Version: Factory Platform: x86-64 OS/Version: SuSE Other Status: NEW Severity: Major Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: f.de.kruijf@gmail.com QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1 Starting amavis with rcamavis as root gives an error message which tells that amavisd did not start. See also the following: # rcamavis status amavis.service - LSB: Start amavisd-new Loaded: loaded (/etc/init.d/amavis) Active: failed since Wed, 12 Oct 2011 16:58:49 +0200; 6h ago Process: 5070 ExecStart=/etc/init.d/amavis start (code=exited, status=7/NOTRUNNING) CGroup: name=systemd:/system/amavis.service ├ 5079 /usr/sbin/amavisd (master) ├ 5085 /usr/sbin/amavisd (virgin child) └ 5086 /usr/sbin/amavisd (virgin child) However amavisd is running. See the follwing: # ps aux | grep amavis vscan 5079 0.0 9.5 217148 97120 ? Ss 16:58 0:01 /usr/sbin/amavisd (master) vscan 5085 0.0 9.4 218420 96144 ? S 16:58 0:00 /usr/sbin/amavisd (virgin child) vscan 5086 0.0 9.4 218420 96136 ? S 16:58 0:00 /usr/sbin/amavisd (virgin child) root 10999 0.0 0.0 6784 872 pts/1 S+ 23:52 0:00 grep amavis The problem lies in the utility checkproc which returns the wrong values: # checkproc amavisd ; echo $? 3 eik121b1v:~ # checkproc -p /var/spool/amavis/amavisd.pid amavisd ; echo $? 1 The return values are 3 and 1, but in both cases the return value must be 0, because amavisd is running. See above. Reproducible: Always Steps to Reproduce: 1.Start amavisd using the command rcamavis as root 2.Check that amavisd is running with ps aux | grep amavis 3.Give the two lines of commands given above and check the returned value. Actual Results: Values 3 and 1. Expected Results: In both cases the return value must be 0. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.