Project

General

Profile

Actions

Bug #1541

closed

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

Added by Thomas NOEL almost 13 years ago. Updated almost 13 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:
Plus Target Version:
Release Notes:
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)

Actions

Also available in: Atom PDF