You are not logged in.

#1 2009-10-07 15:58:17

SpeedVin
Member
From: Poland
Registered: 2009-04-29
Posts: 955

[Solved] OSS can't be started at system start.

Hello.
I got strange issue with OSS.
I got OSS in deamons array and I can't start it.
I getting error's:

When you got something wrong in your config file and I got connection refused at mpd port

When I restart 2nd times OSS is starting normally.
Thanks for help.

Last edited by SpeedVin (2009-10-13 16:07:47)


Shell Scripter | C/C++/Python/Java Coder | ZSH

Offline

#2 2009-10-07 22:04:52

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: [Solved] OSS can't be started at system start.

Remove oss from your daemons line and start it manually from a console to check if there are more errors (check dmesg and the other logs).


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#3 2009-10-08 17:28:56

SpeedVin
Member
From: Poland
Registered: 2009-04-29
Posts: 955

Re: [Solved] OSS can't be started at system start.

R00KIE wrote:

Remove oss from your daemons line and start it manually from a console to check if there are more errors (check dmesg and the other logs).

Logs are fine but I see now when on shutdown sytem stops mpd deamon I got connection refused neutral
Edit
Ok this connection refused was from mpd and I  think I know waht going on I added to rc.local script to start oss deamon manually and they start and when I add oss to deamons array in rc.conf it can't be started hmm

Last edited by SpeedVin (2009-10-08 17:51:15)


Shell Scripter | C/C++/Python/Java Coder | ZSH

Offline

#4 2009-10-08 20:46:49

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: [Solved] OSS can't be started at system start.

Post you daemons line please, maybe something needs to start before oss does ... it works just fine here with most things starting in the background, including oss.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#5 2009-10-09 04:27:53

jacko
Member
Registered: 2007-11-23
Posts: 840

Re: [Solved] OSS can't be started at system start.

Ok this connection refused was from mpd and I  think I know waht going on I added to rc.local script to start oss deamon manually and they start and when I add oss to deamons array in rc.conf it can't be started

1. rc.conf is run before rc.local
2. oss must be started and up (don't background) before mpd or else mpd will error out because it can not find an audio interface. Blah blah... I sorta had this issue before.

Offline

#6 2009-10-09 15:24:05

SpeedVin
Member
From: Poland
Registered: 2009-04-29
Posts: 955

Re: [Solved] OSS can't be started at system start.

R00KIE wrote:

Post you daemons line please, maybe something needs to start before oss does ... it works just fine here with most things starting in the background, including oss.

Here you are:

DAEMONS=(@dbus @network oss mpd)

Shell Scripter | C/C++/Python/Java Coder | ZSH

Offline

#7 2009-10-10 15:35:26

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: [Solved] OSS can't be started at system start.

And thats the array you had before or the one you have now?
Have you tried with DAEMONS=(oss mpd @dbus @network) ? Shouldn't make any difference but who knows.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#8 2009-10-11 17:29:29

SpeedVin
Member
From: Poland
Registered: 2009-04-29
Posts: 955

Re: [Solved] OSS can't be started at system start.

R00KIE wrote:

And thats the array you had before or the one you have now?
Have you tried with DAEMONS=(oss mpd @dbus @network) ? Shouldn't make any difference but who knows.

Ok thats working for OSS but MPD fails to start sad
The same situation like in OSS sad


Shell Scripter | C/C++/Python/Java Coder | ZSH

Offline

#9 2009-10-12 10:49:17

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: [Solved] OSS can't be started at system start.

I can't help you with mpd because I don't use it but maybe you should not background dbus and make it start before mpd (even before almost everything else) but this is just a guess.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#10 2009-10-12 16:37:29

SpeedVin
Member
From: Poland
Registered: 2009-04-29
Posts: 955

Re: [Solved] OSS can't be started at system start.

I just builded mpd from git repo and still the same error sad


Shell Scripter | C/C++/Python/Java Coder | ZSH

Offline

#11 2009-10-13 14:43:53

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: [Solved] OSS can't be started at system start.

you need both network and oss before mpd.  syslog and network should always be first and unbackgrounded IMHO.

personally, i have this and it's working fine.

> grep ^DAEMONS /etc/rc.conf
DAEMONS=(syslog-ng network hal @sensors @iptables @dropboxd @fcron @openntpd @oss !mysqld @sshd @httpd !vsftpd !samba @ushare @cups @skvm @icecast @mpd)

Offline

#12 2009-10-13 15:28:54

Gen2ly
Member
From: Sevierville, TN
Registered: 2009-03-06
Posts: 1,529
Website

Re: [Solved] OSS can't be started at system start.

bind_to_address                 "127.0.0.1"

??


Setting Up a Scripting Environment | Proud donor to wikipedia - link

Offline

#13 2009-10-13 16:07:30

SpeedVin
Member
From: Poland
Registered: 2009-04-29
Posts: 955

Re: [Solved] OSS can't be started at system start.

Gen2ly wrote:

bind_to_address                 "127.0.0.1"

??

Thats working thanks Gen2ly and brisbin33 wink


Shell Scripter | C/C++/Python/Java Coder | ZSH

Offline

Board footer

Powered by FluxBB