| 1 | # Systemd.timer file to periodically run the |
| 2 | # `malloc trim` CLI command to return unused memory |
| 3 | # to the OS. |
| 4 | # |
| 5 | # Don't modify this file to customize the start time. Instead create file |
| 6 | # /etc/systemd/system/asterisk-malloc-trim.timer.d/10-oncalendar.conf |
| 7 | # with the following contents: |
| 8 | # |
| 9 | # [Timer] |
| 10 | # OnCalendar=<new time spec> |
| 11 | # |
| 12 | # Run `systemctl daemon-reload` after creating this file. |
| 13 | # |
| 14 | # OnCalendar isn't the only way to set when the unit runs. |
| 15 | # See systemd.timer(5) and systemd.time(7) for more info. |
| 16 | # |
| 17 | |
| 18 | [Unit] |
| 19 | Description=Asterisk malloc-trim timer |
| 20 | After=asterisk.service |
| 21 | Requisite=asterisk.service |
| 22 | |
| 23 | [Timer] |
| 24 | OnCalendar=00:15:00 |
| 25 | RandomizedDelaySec=3600 |
| 26 | Persistent=yes |
| 27 | |
| 28 | [Install] |
| 29 | WantedBy=timers.target |