summaryrefslogtreecommitdiffstats
path: root/roles/stream/templates/on-connect
blob: cd9deb643b6fcc9a38be8965f344123d8b5cc660 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash
set -e
PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin"
PIDFILE="{{ icecast_restream_dir }}/{{ emacsconf_id }}-lowres-{{ item.id }}.pid"

. /lib/lsb/init-functions

start-stop-daemon --start --quiet --background \
                  --make-pidfile --pidfile $PIDFILE \
                  --oknodo \
                  --exec /usr/local/bin/{{ emacsconf_id }}-lowres-{{ item.id }}.sh > /dev/null