FS#26852 - [initscripts] Cannot find command in_aray

Attached to Project: Arch Linux
Opened by Mathieu Pasquet (mathieui) - Friday, 11 November 2011, 19:09 GMT
Last edited by Dave Reisner (falconindy) - Friday, 11 November 2011, 20:02 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
I get some errors while calling rc.d, each time. It still works, though.

Additional info:
* version: 2011.11.1-1

* error:
(sorry, I could not localize the errors, but it still seems quite clear)

/etc/rc.d/functions: ligne111: in_array : commande introuvable
/etc/rc.d/functions: ligne111: in_array : commande introuvable
/etc/rc.d/functions: ligne111: in_array : commande introuvable
/etc/rc.d/functions: ligne111: in_array : commande introuvable
/etc/rc.d/functions: ligne111: in_array : commande introuvable
/etc/rc.d/functions: ligne111: in_array : commande introuvable
:: Stopping Music Player Daemon [DONE]
/etc/rc.d/functions: ligne111: in_array : commande introuvable
/etc/rc.d/functions: ligne111: in_array : commande introuvable

Steps to reproduce:
Example: rc.d restart mpd

Fix:
The error seems to be occurring because in_array is called -line 111- before it is defined -line 221-. Moving the call down or the function up should fix this (I attached an example patch).
This task depends upon

Closed by  Dave Reisner (falconindy)
Friday, 11 November 2011, 20:02 GMT
Reason for closing:  Duplicate
Additional comments about closing:  Dupe of  FS#26835 

Loading...