Expensify / Bedrock

Rock solid distributed database specializing in active/active automatic failover and WAN replication
https://bedrockdb.com
GNU Lesser General Public License v3.0
1.08k stars 82 forks source link

Save logline at shutdown #1770

Closed tylerkaraszewski closed 2 months ago

tylerkaraszewski commented 2 months ago

Details

Adds a logline in /var/log/bedrock_shutdown when bedrock shuts down.

Format:

shutdown $PID $TIMESTAMP

Example:

shutdown 1685177 2024-06-05T22:51:02
shutdown 1686170 2024-06-05T22:54:15

Fixed Issues

Fixes https://github.com/Expensify/Expensify/issues/171333

Tests

Build bedrock/auth in the VM.

run:

sudo service auth start
sudo service auth stop

inspect the contents of /var/log/bedrock_shutdown


Internal Testing Reminder: when changing bedrock, please compile auth against your new changes