DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2007-12-21 00:26:01

ChrisOwens
Member
Registered: 2007-12-07
Posts: 31

DNS323 Chroot Debian - Graceful shutdown?

I'm playing with a chrooted Debian etch environment... not trying to turn this brave little box into a full strength server, but would like to support LDAP, afpd, kerberos, and zeroconf.   All works well.

But.... shutting down the unit either by the web interface or the button on the front panel, sort of yanks the rug out from underneath a lot of running daemons, resulting in, at the very least, stale PIDfiles.

Is there a more graceful way to shut down?  EITHER: some sort of hook (analogous to fun_plug) that allows me to run arbitrary code during the shutdown sequence, OR, some way of initiating a shutdown from the Debian side?

Offline

 

#2 2007-12-24 09:09:59

ChrisOwens
Member
Registered: 2007-12-07
Posts: 31

Re: DNS323 Chroot Debian - Graceful shutdown?

OK I've figured out that I can touch /tmp/shutdown to shutdown, but cannot figure out how to restart /tmp/restart and tmp/reboot seem to do nothing.

Offline

 

#3 2008-01-07 05:23:29

ChrisOwens
Member
Registered: 2007-12-07
Posts: 31

Re: DNS323 Chroot Debian - Graceful shutdown?

Bump... Clue anyone?  Anybody decompile or run strings on chkbutton, which seems to be the process responsible for exercising overall control?'

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB