22 lines
902 B
SYSTEMD
22 lines
902 B
SYSTEMD
[Unit]
|
|
# A short human readable title of the unit
|
|
Description=Counter Reader launcher
|
|
# A list of units whose activations will occur before this unit starts.
|
|
After=network.target
|
|
|
|
[Timer]
|
|
# The syntax for timers is described in (https://www.freedesktop.org/software/systemd/man/systemd.time.html#)
|
|
# A shorthand version is that you can specify timers by specifying values using (us, ms, s, m, h, days, weeks, months, years)
|
|
# e.g., 2 weeks 1 hours or 1 year 6 months or 5 m 30 s
|
|
|
|
# Defines a timer relative to the moment the timer unit itself is activated.
|
|
OnActiveSec=30s
|
|
|
|
# In addition to the above, OnCalendar takes a cron like syntax or values such as (minutely, hourly, daily, monthly, weekly,...)
|
|
# Defines realtime (i.e. wallclock) timers with calendar event expressions
|
|
OnCalendar=daily
|
|
|
|
[Install]
|
|
# A list of units who when activated will try and activate this unit
|
|
WantedBy=multi-user.target
|