Hi all,
I have a small device MicroUPS which helps me to shutdown my system on
embedded devices, it is controlled by script /etc/init.d/microups and in this
script I need to know whether system is going down for reboot or for halt,
because in case of halt I need to send small data over RS232 to
Dnia wtorek, 8 sierpnia 2017 21:04:18 CEST Andrei Borzenkov pisze:
> 08.08.2017 17:03, Marek Floriańczyk пишет:
> > What would be the proper way to distinguish between system is going down
> > for reboot and for shutdown ?
>
> Straightforward way is to make your service Wan
d combination that'd solve both problems
> without introducing some ugly race conditions...
>
> On Tue, Aug 8, 2017, 21:46 Marek Floriańczyk
>
> wrote:
> > Dnia wtorek, 8 sierpnia 2017 21:04:18 CEST Andrei Borzenkov pisze:
> > > 08.08.2017 17:03, Marek F
Dnia środa, 9 sierpnia 2017 10:29:37 CEST Lennart Poettering pisze:
> On Di, 08.08.17 16:03, Marek Floriańczyk (marek.florianc...@gmail.com) wrote:
> > Hi all,
> >
> > I have a small device MicroUPS which helps me to shutdown my system on
> > embedded devices, it i
; schedules the UPS poweroff.
Thanks for suggestion
I will stick to the approach suggested by Lennart it looks like a simple
solution to me, and the binary is called at the very late stage of shutdown
process after every databases and daemons are closed.
>
> On Wed, Aug 9, 2017, 12
Dnia środa, 9 sierpnia 2017 11:51:07 CEST Tilman Baumann pisze:
> On 09.08.2017 11:28, Tilman Baumann wrote:
> > DL;DR
> > UPS shutdowns are tricky. Clean file-systems are not the only concern.
> > But if you can make assumptions about your storage backend you might be
> > able to cut corners safel
Dnia środa, 9 sierpnia 2017 14:54:25 CEST piszesz:
> 2017-08-09 14:51 GMT+02:00 Marek Floriańczyk :
> > Dnia środa, 9 sierpnia 2017 11:51:07 CEST Tilman Baumann pisze:
> >> On 09.08.2017 11:28, Tilman Baumann wrote:
> > NUT looks like quite active based on their websi