Commit 27b8ee93 authored by ale's avatar ale
Browse files

actually pass the config file to liquidsoap

parent c50d8b2d
......@@ -91,8 +91,6 @@ func (p *liquidsoapParams) Render(w io.Writer) error {
// Stop().
type liquidsoapController struct {
params *liquidsoapParams
tmpdir string
configPath string
restartDelay time.Duration
// Information about the running process. The lock protects
......@@ -139,7 +137,7 @@ func (l *liquidsoapController) runOnce() {
// channel is closed (requesting termination). Keep the lock
// held until l.process is set, so that we can synchronize the
// process termination properly.
cmd := exec.Command(*liquidsoapBin, "-T", "-U", "-v", l.configPath)
cmd := exec.Command(*liquidsoapBin, "-T", "-U", "-v", config)
cmd.Stdout = os.Stderr
cmd.Stderr = os.Stderr
if err := cmd.Start(); err != nil {
......@@ -196,6 +194,4 @@ func (l *liquidsoapController) Stop() {
l.lock.Unlock()
l.wg.Wait()
os.RemoveAll(l.tmpdir)
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment