EFW Support

Support => General Support => Topic started by: rbnirv on Thursday 12 March 2009, 07:01:36 am



Title: ACPI Shutdown ?
Post by: rbnirv on Thursday 12 March 2009, 07:01:36 am
How can I make my endian firewall shutdown when I push the power button?  Basically so it does a normal acpi shutdown using acpid.  I have a headless box and don't always have a pc handy to hit the web gui to shut it down in an emergency. 


Title: Re: ACPI Shutdown ?
Post by: mrkroket on Friday 20 March 2009, 02:20:23 am
Not tested but:
http://alumnus.caltech.edu/~igormt/endian/extras.html (http://alumnus.caltech.edu/~igormt/endian/extras.html)
Quote
acpid

If you are like me, you are running EFW Community Edition on an ordinary (perhaps slightly older) PC that is running “headless” (no monitor or keyboard). To shut it down or re-boot it for whatever reason, I have to bring up EFW’s web interface on another computer and use the GUI to do it. I’d much prefer to simply hit the power button on the PC and have it trigger a shutdown. That is exactly what acpid will do. I’ve taken acpid (as produced by Tim Hockin), configured it to trigger a system shutdown whenever the power button is pressed, and packaged the whole thing into an RPM.


Title: Re: ACPI Shutdown ?
Post by: vondie on Sunday 30 August 2009, 01:18:17 am
New link http://endian.mcabig.net/


Title: Re: ACPI Shutdown ?
Post by: mangthjik on Friday 03 February 2012, 11:55:55 am
 dear sir... i newbie in linux and endian. I had try using above sugest. but it is't work for my endian.
I am using endian comunity 2.5 , any help really apreciate please...............

Thanks


Title: Re: ACPI Shutdown ?
Post by: endianupdate on Monday 06 February 2012, 08:27:05 am
Me too !

I have Endian 2.5.1 running on a  of old Dell PowerEdge SC420 servers and would like to be able to shut them down using the power button through ACPI (I switched from Astaro and this is something I miss)

I will be happy to do some testing if anyone can suggest a way of installing a custom package for this, what Linux distro is Endian based on ?

Uname -r gives 2.6.32.43-57.e43.i586

cat /etc/issue gives Endian Firewall Community release 2.5.1


Title: Re: ACPI Shutdown ?
Post by: mangthjik on Friday 10 February 2012, 06:38:42 pm
for temporary solution for headless endian i am using batch script with plink to shutdown endian trough ssh



Title: Re: ACPI Shutdown ?
Post by: claurita on Monday 27 February 2012, 09:35:28 am
Hi,
I succeeded in porting acpid 2.0.14 on efw 2.5.1
No rpm, sorry. But I attached a tar with all needed files

untar it in your root and run /etc/rc.d/init.d/acpid start
that's all.

....BUT
Since bootstrap changed heavily in 2.5, I don't yet know what's the best way to start it automatically.
I'm studying it and hope i could post a solution asap.

Hope it could solve a part of your problem

Regars
Claudio


Title: Re: ACPI Shutdown ?
Post by: claurita on Tuesday 28 February 2012, 01:59:21 am
I decided to use the start.local script, as the new python bootstrap management is rather inaccessible.
If anyone has a better idea, is welcome.

This the "complete" tar with the last file.

Claudio


Title: Re: ACPI Shutdown ?
Post by: mangthjik on Tuesday 28 February 2012, 11:43:32 am
Hi,
I succeeded in porting acpid 2.0.14 on efw 2.5.1
No rpm, sorry. But I attached a tar with all needed files

untar it in your root and run /etc/rc.d/init.d/acpid start
that's all.

....BUT
Since bootstrap changed heavily in 2.5, I don't yet know what's the best way to start it automatically.
I'm studying it and hope i could post a solution asap.

Hope it could solve a part of your problem

Regars
Claudio

thanks claurita I will test it.
at this moment I am using batch script file trough putty to shutdown efw from my desktop


Title: Re: ACPI Shutdown ?
Post by: melcon on Friday 16 March 2012, 09:22:41 am
I decided to use the start.local script, as the new python bootstrap management is rather inaccessible.
If anyone has a better idea, is welcome.

This the "complete" tar with the last file.

Claudio

Hello there, Claudio.

Are you positive that this tarball is working? I just have tried with efw 2.5.1 and I got:
Code:
acpid: /lib/tls/i686/libc.so.6: version `GLIBC_2.4' not found (required by acpid)

Thanks


Title: Re: ACPI Shutdown ?
Post by: maxxer on Monday 10 September 2012, 05:47:55 pm
Hello there, Claudio.

Are you positive that this tarball is working? I just have tried with efw 2.5.1 and I got:
Code:
acpid: /lib/tls/i686/libc.so.6: version `GLIBC_2.4' not found (required by acpid)

Thanks

same here... any solution?
thanks


Title: Re: ACPI Shutdown ?
Post by: Kajowas on Friday 15 February 2013, 09:17:01 pm
Same problem also here...  may we have to just recompile the source file? But how ?

EDIT
After some trials and error I managed somehow to compile the acpid 1.0.6 (or anyway to make it running) but system gives an error because it can't find /proc/acpi/event.

In fact, reading a little bit about acpid I found that the earlier acpid v1 don't work anymore on new releases because the proc/acpi/event device is no more present.
Now there's acpid v2 that should be used.

Ok, now I'm trying to compile it on my efw 2.5.1, say me good luck
(also because it seems that noone post on this topic anymore besides me)


Title: Re: ACPI Shutdown ?
Post by: Kajowas on Friday 22 February 2013, 09:26:50 pm
No way at all :(

I managed to get gcc (and make) working on efw 2.5.1 so I downloaded original package of apcid 2.0.14 and tried to make it but with no success.
(it says fstatat() could not be found)

So I'm stuck with the Claudio's binary and the GLIBC_2.4 not found error :(

Probably if we had the Claudio's source files I could try to rebuild it using the glibc 2.3.4 which are included in efw 2.5.1.
Or perhaps Claudio himself could build his binary to target a glibc_2.3.4 ?? (but he seems to be disappeared...)



Title: Re: ACPI Shutdown ?
Post by: mrkroket on Saturday 02 March 2013, 05:39:05 am
Good luck compiling at Endian.
I made on earlier versions, but it's a pain in the ***. Sometimes you must recover older packages from older endian versions to make it work.


Title: Re: ACPI Shutdown ?
Post by: robert on Saturday 02 March 2013, 10:31:32 am
Have you looked at the dev environment I put together?  It allows you to build the whole product up to and including creating the CD image using only the SRPMs available on SourceForge.  Also you can use it to easily build other packages you want to add.  You can also upgrade individual packages with newer upstream versions and then rebuild them to install directly or create a new CD image with it included.

I have done all of these with it and used it to update the efw-ipsec package and develop the new package to support L2TP.