HEX
Server: nginx/1.24.0
System: Linux ip-10-50-20-85 6.5.0-1022-aws #22~22.04.1-Ubuntu SMP Fri Jun 14 16:31:00 UTC 2024 x86_64
User: usefuloffices.org (1001)
PHP: 8.1.2-1ubuntu2.23
Disabled: NONE
Upload Files
File: //snap/core/current/etc/init/hwclock-save.conf
# hwclock-save - save system clock to hardware clock
#
# This task saves the time from the system clock back to the hardware
# clock on shutdown.

description	"save system clock to hardware clock"

start on runlevel [06]

task

script
    # BADYEAR can be in either file
    . /etc/default/rcS
    [ ! -r /etc/default/hwclock ] || . /etc/default/hwclock
    grep -qw LOCAL /etc/adjtime 2>/dev/null && tz="--localtime" || tz="--utc"
    [ "$BADYEAR" = "yes" ] && badyear="--badyear"
    exec hwclock --rtc=/dev/rtc0 --systohc $tz --noadjfile $badyear
end script