# TODO Note: One can specify ExecStart and ExecStop. Maybe to pause some script during shutdown/suspend? This would be nice for backups. Just finish the current snapshot then pause.
#
# ExecStop=
# Commands to execute to stop the service started via ExecStart=.
# The command that asks the service to stop should wait for it to do so!
# After the commands configured in this option are run, it is implied that the service is stopped, and any processes remaining for it are terminated.
#
# If this option is not specified, the process is terminated when service stop is requested.
# If the service stopped or restarted, then this timer is stopped or restarted as well.
partOf=["hello-world.service"];
# https://man.archlinux.org/man/systemd.timer.5
timerConfig={
# Either calendar time.
# Or relative time. https://unix.stackexchange.com/a/294200/315162
#
OnCalendar="monthly";
Persistent=true;# Catch up on missed runs of the service when the system was powered down. This setting only has an effect on timers configured with OnCalendar=.
#
#OnBootSec = "0m";
#OnUnitActiveSec = "30d";
#OnUnitInactiveSec = "30d";
# To optimize power consumption, make sure to set this value as high as possible and as low as necessary.
AccuracySec="2d";
# This setting is useful to stretch dispatching of similarly configured timer events over a certain time interval, to prevent them from firing all at the same time, possibly resulting in resource congestion.
RandomizedDelaySec="2d";
# Takes a boolean argument. If true, an elapsing timer will cause the system to resume from suspend, should it be suspended and if the system supports this. Note that this option will only make sure the system resumes on the appropriate times, it will not take care of suspending it again after any work that is to be done is finished.
# Note that this functionality requires privileges and is thus generally only available in the system service manager.