Cheers,
Will incorporate for next update.
R.
Sergio Navarro i Fajardo wrote:
Hi,
I have added acpi daemon to openfiler system, so as to power down the system
with the button.
First I installed daemon:
conary update 'acpid=/[EMAIL PROTECTED]:devel/1.0.4-9-3'
And then patched openfiler r1210 with the patch attached.
Now, the services menu has got an acpid daemon enable/disable button.
bye!
------------------------------------------------------------------------
210,213c210,215
<
<
<
<
---
else if ($service == "acpid")
{
exec("/usr/bin/sudo /sbin/service acpid stop");
if(!$cluster_enabled)
exec("/usr/bin/sudo /sbin/chkconfig acpid off");
}
226a229
$service_acpid = (strstr(exec("/usr/bin/sudo /sbin/service acpid
status"), "running") ? 1 : 0);
312a316,317
if ($service_acpid > 0)
$cluster_resource_str .= " acpid";
372a378,384
else if ($service == "acpid")
{
exec("/usr/bin/sudo /sbin/service acpid start");
if (!$cluster_enabled)
exec("/usr/bin/sudo /sbin/chkconfig acpid on");
}
398a411
$service_acpid = (strstr(exec("/usr/bin/sudo /sbin/service acpid
status"), "running") ? 1 : 0);
485a499,500
if ($service_acpid > 0)
$cluster_resource_str .= " acpid";
506a522
$acpid = (strstr(exec("/usr/bin/sudo /sbin/service acpid status"),
"running") ? 1 : 0);
572c588
<
---
578a595,600
print("<tr>\n");
print("\t<td bgcolor=\"" . $GLOBALS["color_table_row1"] .
"\">ACPId</td>\n");
print("\t<td bgcolor=\"" . $GLOBALS["color_table_row1"] . "\" align=\"center\">" . (($acpid != 0) ?
"Enabled" : "Disabled") . "</td>\n");
print("\t<td bgcolor=\"" . $GLOBALS["color_table_row1"] . "\" align=\"center\"><a href=\"services.html?service=acpid&action=" . (($acpid != 0) ?
"disable" : "enable") . "\">" . (($acpid != 0) ? "Disable" : "Enable") . "</a></td>\n");
print("</tr>\n");
------------------------------------------------------------------------
_______________________________________________
Openfiler-users mailing list
[email protected]
https://lists.openfiler.com/mailman/listinfo/openfiler-users
_______________________________________________
Openfiler-users mailing list
[email protected]
https://lists.openfiler.com/mailman/listinfo/openfiler-users