Skip to content

Commit

Permalink
Added timers for fs logrotate in systemd (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
swysor authored and k-anderson committed Nov 3, 2016
1 parent d945e95 commit bda790d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
6 changes: 6 additions & 0 deletions system/systemd/kazoo-freeswitch-logrotate.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[Unit]
Description=Run logrotate for freeswitch

[Service]
Type=oneshot
ExecStart=/usr/sbin/logrotate --force /etc/logrotate.d/freeswitch.conf
9 changes: 9 additions & 0 deletions system/systemd/kazoo-freeswitch-logrotate.timer
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit bda790d

Please sign in to comment.