Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ale
autoradio
Commits
27b8ee93
Commit
27b8ee93
authored
Jul 24, 2015
by
ale
Browse files
actually pass the config file to liquidsoap
parent
c50d8b2d
Changes
1
Hide whitespace changes
Inline
Side-by-side
node/liquidsoap.go
View file @
27b8ee93
...
...
@@ -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
.
config
Path
)
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
)
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment