FS#4108 - Package fam 2.7.0-8 - error in fam starting script

Attached to Project: Arch Linux
Opened by Dmitry N. Shilov (StormBlast) - Sunday, 05 March 2006, 15:25 GMT
Last edited by Tobias Powalowski (tpowa) - Sunday, 05 March 2006, 17:14 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To dorphell (dorphell)
Architecture not specified
Severity Medium
Priority Normal
Reported Version 0.7.1 Noodle
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

There's a small error in /etc/rc.d/fam that prevents famd to sstart. Famd needs portmap to sstart, new script checking for /var/run/daemons/fam insstead of /var/run/daemons/portmap.
==== cut ====
sstart)
sstat_busy "Starting File Alteration Monitor"
if [ ! -f /var/run/daemons/fam ]; then
stat_fail
echo "ERROR: fam is not running"
exit 1
==== cut ====

right code:

==== cut ====
sstart)
sstat_busy "Starting File Alteration Monitor"
if [ ! -f /var/run/daemons/portmap ]; then
stat_fail
echo "ERROR: portmap is not running"
exit 1
==== cut ====
This task depends upon

Closed by  arjan timmerman (blaasvis)
Saturday, 25 March 2006, 18:08 GMT
Reason for closing:  Fixed
Additional comments about closing:  in -9
Comment by Börje Holmberg (linfan) - Wednesday, 15 March 2006, 08:02 GMT
The same error slipped into current :( with todays update, i.e. 'fam' should be changed to 'portmap'

BTW, why has the above example two ss as in sstart and sstat? Should it not be 'stat and 'start' with only one s? Like this:

===cut===
start)
stat_busy "Starting File Alteration Monitor"
if [ ! -f /var/run/daemons/portmap ]; then
stat_fail
echo "ERROR: fam is not running"
exit 1
fi
===cut=

Regards,

linfan
Comment by Nicolas Doualot (slubman) - Thursday, 16 March 2006, 13:22 GMT
Best replace the lines by:
===cut===
start)
#Check for running portmap, start when not running
ck_daemon portmap && /etc/rc.d/portmap start
stat_busy "Starting File Alteration Monitor"
if [ ! -f /var/run/daemons/portmap ]; then
stat_fail
echo "ERROR: PORTMAP is not running"
exit 1
fi
===cut===
Like in hal which start dbus ;)

slubman
Comment by Nicolas Doualot (slubman) - Thursday, 16 March 2006, 13:23 GMT
I forgot to say taht,I had this error too
Comment by Sander Dieleman (Sander) - Friday, 17 March 2006, 19:19 GMT
Yep, I have it too. I hope it'll be fixed soon..
Comment by name withheld (Gullible Jones) - Monday, 20 March 2006, 20:52 GMT
This package is now in Current, and the bug is still unfixed.
Comment by Gabriel Linder (raskolnikov) - Wednesday, 22 March 2006, 15:43 GMT
That sucks.

Loading...