Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
autoradio
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ale
autoradio
Commits
51d195b8
Commit
51d195b8
authored
11 years ago
by
ale
Browse files
Options
Downloads
Patches
Plain Diff
do not forget to start the icecast status checker
parent
fc2d9387
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
node/icecast.go
+3
-1
3 additions, 1 deletion
node/icecast.go
node/node.go
+3
-0
3 additions, 0 deletions
node/node.go
with
6 additions
and
1 deletion
node/icecast.go
+
3
−
1
View file @
51d195b8
...
...
@@ -4,6 +4,7 @@ import (
"encoding/xml"
"errors"
"io"
"log"
"net/http"
"os"
"os/exec"
...
...
@@ -84,6 +85,7 @@ func (ic *IcecastController) statusUpdater() {
if
status
,
err
:=
ic
.
fetchStatus
();
err
==
nil
{
ic
.
status
=
status
}
else
{
log
.
Printf
(
"bad status from iceast: %v"
,
err
)
ic
.
status
=
downStatus
}
case
<-
ic
.
stop
:
...
...
@@ -111,5 +113,5 @@ func (ic *IcecastController) parseStatusPage(input io.Reader) (*IcecastStatus, e
}
func
(
ic
*
IcecastController
)
Run
()
{
go
ic
.
statusUpdater
()
ic
.
statusUpdater
()
}
This diff is collapsed.
Click to expand it.
node/node.go
+
3
−
0
View file @
51d195b8
...
...
@@ -279,6 +279,9 @@ func (rc *RadioNode) Run() {
// initialize.
time
.
Sleep
(
200
*
time
.
Millisecond
)
// Start the Icecast status checker.
go
rc
.
icecast
.
Run
()
log
.
Printf
(
"starting icecast updater"
)
for
{
select
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment