Project

General

Profile

Bug #1541

/etc/rc.start/stop_packages do not start/stop .sh files

Added by Thomas NOEL about 8 years ago. Updated about 8 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Ermal Luçi
Category:
Package System
Target version:
Start date:
05/19/2011
Due date:
% Done:

100%

Estimated time:
Affected Version:
2.0
Affected Architecture:
All

Description

Hi,

foreach doesn't works after array_flip()...

=================

--- ./etc/rc.start_packages.orig 2011-05-19 12:13:09.000000000 0000
+
+ ./etc/rc.start_packages 2011-05-19 12:18:47.000000000 +0000
@ -61,7 +61,7 @

$shell = @popen("/bin/sh", "w");
if ($shell) {
- foreach ($rcfiles as $rcfile) {
+ foreach ($rcfiles as $rcfile => $number) {
echo " Starting {$rcfile}...";
fwrite($shell, "{$rcfile} start >>/tmp/bootup_messages 2>&1 &");
echo "done.\n";

=================

(idem for rc.stop_services)

Associated revisions

Revision dfa6deda (diff)
Added by Jim Pingle about 8 years ago

Fix array parsing of rc files. Resolves #1541

History

#1 Updated by Jim Pingle about 8 years ago

  • Status changed from New to Feedback

#2 Updated by Jim Pingle about 8 years ago

  • % Done changed from 0 to 100

#3 Updated by Ermal Luçi about 8 years ago

  • Status changed from Feedback to Resolved

Also available in: Atom PDF