Hello,

Danny Milosavljevic <dan...@friendly-machines.com> writes:

> Where in /gnu/store is the source for /etc/protocols ? I'd like to check
> them for damage.

It’s the ‘net-base’ package—see ‘operating-system-etc-service’.

>>In the stop procedure of root-file-system shepherd service, located in
>>(gnu services base)
>
> Thanks. I found it--and it syncs *before* unmounting.  Why?

In case umount(2) fails.

> umount could totally have added more stuff to the buffer cache (like its
> superblock update that was updating the dirty flag, or any user writes
> that had not been flushed to disk yet), no?
>
> In any case, I suspect it never reached the "stop" routine.

Sounds impossible.  I mean, the ‘stop’ method of ‘root-file-system’
could throw an exception and not do all its work, but it’s necessarily
reached or we’d never call reboot(2).  (It’s the ‘stop’ method of the
‘root’ service that calls reboot(2).)

> (So I take it we rotate at some random time?  Given that system seems to
> be up in the middle of me using it to read mail right when the rotation
> happened.  That's ok--but good to know)

Not random: see ‘herd status log-rotation’ and this:

  
https://www.gnu.org/software/shepherd/manual/html_node/Log-Rotation-Service.html

:-)

HTH,
Ludo’.

Reply via email to