I was wondering if it is possible to shutdown a nas4free server from within a jail running within the server?
I'm looking to install apcupsd within a jail, and use it as a client to another server (Ubuntu Server 14.04) running apcupsd, which is directly connected to the ups.
I just installed thebrig, but have yet to install a jail yet.
Any suggestions for this, or an alternative solution, are welcomed.
Thanks
This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!
I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!
it will taken offline by the end of march 2021!
I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!
Shutdown machine from within a jail?
-
Abe
- NewUser

- Posts: 8
- Joined: 11 Mar 2014 23:50
- Status: Offline
- MikeMac
- Forum Moderator

- Posts: 429
- Joined: 07 Oct 2012 23:12
- Location: Moscow, Russia
- Contact:
- Status: Offline
Re: Shutdown machine from within a jail?
You could do it indirectly. F.e. create inside jail file with predefined name then you need to shoot down the server
From host run by cron script, that check if the above mentioned file exists and in case if yes - delete one and shut down host.
From host run by cron script, that check if the above mentioned file exists and in case if yes - delete one and shut down host.
-
Abe
- NewUser

- Posts: 8
- Joined: 11 Mar 2014 23:50
- Status: Offline
Re: Shutdown machine from within a jail?
Thanks for your response MikeMac,
I'm not sure if I fully understand, but here's how I'm understanding you:
The jail receives a signal to shutdown over the network by apcupsd. This triggers the creation of a file.
The host, via cron, is monitoring the jail for that specific file, and when it exists, shutdown the host.
I'll give it a try,
Thanks
I'm not sure if I fully understand, but here's how I'm understanding you:
The jail receives a signal to shutdown over the network by apcupsd. This triggers the creation of a file.
The host, via cron, is monitoring the jail for that specific file, and when it exists, shutdown the host.
I'll give it a try,
Thanks