Welcome, Guest. Please login or register.
Did you miss your activation email?
Sunday 15 December 2024, 03:47:57 pm

Login with username, password and session length

CLICK HERE for the The official Endian Roadmap and Issue tracker
14261 Posts in 4377 Topics by 6517 Members
Latest Member: Sandro
Search:     Advanced search
+  EFW Support
|-+  Support
| |-+  General Support
| | |-+  ACPI Shutdown ?
0 Members and 4 Guests are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: ACPI Shutdown ?  (Read 48256 times)
rbnirv
Jr. Member
*
Offline Offline

Posts: 1


« 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. 
Logged
mrkroket
Hero Member
*****
Offline Offline

Posts: 495


« Reply #1 on: Friday 20 March 2009, 02:20:23 am »

Not tested but:
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.
Logged
vondie
Full Member
***
Offline Offline

Posts: 22


« Reply #2 on: Sunday 30 August 2009, 01:18:17 am »

New link http://endian.mcabig.net/
Logged
mangthjik
Full Member
***
Offline Offline

Posts: 21


« Reply #3 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
Logged
endianupdate
Full Member
***
Offline Offline

Posts: 53


« Reply #4 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
Logged
mangthjik
Full Member
***
Offline Offline

Posts: 21


« Reply #5 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

Logged
claurita
Jr. Member
*
Offline Offline

Posts: 2


« Reply #6 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
Logged
claurita
Jr. Member
*
Offline Offline

Posts: 2


« Reply #7 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
Logged
mangthjik
Full Member
***
Offline Offline

Posts: 21


« Reply #8 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
Logged
melcon
Jr. Member
*
Offline Offline

Posts: 4


« Reply #9 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
Logged
maxxer
Full Member
***
Offline Offline

Posts: 13


« Reply #10 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
Logged
Kajowas
Full Member
***
Offline Offline

Posts: 18


« Reply #11 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)
Logged
Kajowas
Full Member
***
Offline Offline

Posts: 18


« Reply #12 on: Friday 22 February 2013, 09:26:50 pm »

No way at all Sad

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 Sad

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...)

Logged
mrkroket
Hero Member
*****
Offline Offline

Posts: 495


« Reply #13 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.
Logged
robert
Full Member
***
Offline Offline

Posts: 23


« Reply #14 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.
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Page created in 0.188 seconds with 19 queries.
Powered by SMF 1.1 RC2 | SMF © 2001-2005, Lewis Media Design by 7dana.com