Skip to content

Commit

Permalink
fix: add services for playlist reloading
Browse files Browse the repository at this point in the history
  • Loading branch information
spameier committed Nov 8, 2023
1 parent bf98b63 commit e3905f5
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion doc/systemd/klangbecken-disable-expired.timer
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[Unit]
Description=Run klangbecken-disable-expired.service hourly
Description=Run klangbecken-disable-expired.service daily

[Timer]
OnCalendar=*-*-* *:05:00
Expand Down
12 changes: 12 additions & 0 deletions doc/systemd/klangbecken-reload-jingles.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[Unit]
Description=Reload Jingles playlist after expire to workaround missing inotify support

[Service]
Type=simple
EnvironmentFile=/etc/klangbecken.conf
ExecStart=/bin/bash -c 'echo "jingles.reload" | nc -U ${KLANGBECKEN_PLAYER_SOCKET}'
User=liquidsoap
Group=liquidsoap

[Install]
WantedBy=multi-user.target
8 changes: 8 additions & 0 deletions doc/systemd/klangbecken-reload-jingles.timer
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[Unit]
Description=Run klangbecken-reload-jingles.service daily

[Timer]
OnCalendar=*-*-* *:05:30

[Install]
WantedBy=timers.target

0 comments on commit e3905f5

Please sign in to comment.