Browse Source

Added timers for fs logrotate in systemd (#114)

4.1
Sean Wysor 9 years ago
committed by bitbashing
parent
commit
4c72cd8597
2 changed files with 15 additions and 0 deletions
  1. +6
    -0
      system/systemd/kazoo-freeswitch-logrotate.service
  2. +9
    -0
      system/systemd/kazoo-freeswitch-logrotate.timer

+ 6
- 0
system/systemd/kazoo-freeswitch-logrotate.service View File

@ -0,0 +1,6 @@
[Unit]
Description=Run logrotate for freeswitch
[Service]
Type=oneshot
ExecStart=/usr/sbin/logrotate --force /etc/logrotate.d/freeswitch.conf

+ 9
- 0
system/systemd/kazoo-freeswitch-logrotate.timer View File

@ -0,0 +1,9 @@
[Unit]
Description=Rotate the kazoo-freeswitch logs every 15 minutes
[Timer]
OnCalendar=*:0/15
Unit=kazoo-freeswitch-logrotate.service
[Install]
WantedBy=timers.target

Loading…
Cancel
Save