LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 03-10-2008, 02:43 PM   #1
danaketh
LQ Newbie
 
Registered: Jul 2007
Location: Czech Republic, Prague
Distribution: Debian (stable)
Posts: 25

Rep: Reputation: 15
Init script problem


Hi,

I need to start and run VideoLAN as a service with given params, but I have a small problem. I'm using small script:
Code:
...
OPTIONS=-vvv http://source:port --http-reconnect --loop --ttl=8 --sout #duplicate{dst=std{access=http,mux=ts,dst=target:port},dst=std{access=udp,mux=ts,dst=target2:port}}
daemon vlc $OPTIONS
...
These lines are what makes me angry. I think I'm just doing something wrong. It wont work. I also tried to add/remove/change quotes but without effect. Script have three results:

1. VideoLAN starts as a daemon but without parameters, so it's useless
2. VideoLAN starts but not as a daemon and report many errors
3. VideoLAN does not start and script returns same as daemon --help

Is there anybody who can help me with this? I'm ready to hang myself
 
Old 03-10-2008, 02:51 PM   #2
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
First off, DO NOT HANG YOURSELF, it won't help your script in any way, and makes the debug process a LOT harder.

Now, try this instead:

Code:
OPTIONS='-vvv http://source:port --http-reconnect --loop --ttl=8 --sout #duplicate{dst=std{access=http,mux=ts,dst=target:port},dst=std{access=udp,mux=ts,dst=target2:port}}'
daemon vlc $OPTIONS
HTH

Forrest
 
Old 03-10-2008, 02:57 PM   #3
danaketh
LQ Newbie
 
Registered: Jul 2007
Location: Czech Republic, Prague
Distribution: Debian (stable)
Posts: 25

Original Poster
Rep: Reputation: 15
Ok, I will wait with hanging myself. Thanks for reply btw. Have the same effect as point 3 - return daemon parameters list. daemon thinks -vvv... are his params.

Code:
daemon: invalid -v argument: not and integer
 
Old 03-10-2008, 03:35 PM   #4
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
OK, try this instead:

Code:
OPTIONS='-vvv http://source:port --http-reconnect --loop --ttl=8 --sout #duplicate{dst=std{access=http,mux=ts,dst=target:port},dst=std{access=udp,mux=ts,dst=target2:port}}'
daemon -- vlc $OPTIONS
I'm sorry, I don't have the daemon app installed, so I can't test it myself (took a good minute to find a man page online). It isn't very clear from the man page what -- does, but it goes after [options] and before cmd, so it might mean stop looking for parameters.

Let me know,

Forrest
 
Old 03-11-2008, 08:01 AM   #5
danaketh
LQ Newbie
 
Registered: Jul 2007
Location: Czech Republic, Prague
Distribution: Debian (stable)
Posts: 25

Original Poster
Rep: Reputation: 15
Thumbs up Solved

I owe you one... With OPTIONS it wont work but in line as one command it works perfect...

Code:
daemon -- vlc -vvv http://source:port --http-reconnect --loop --ttl=8 --sout '#duplicate{dst=std{access=http,mux=ts,dst=target:port},dst=std{access=udp,mux=ts,dst=target2:port}}'
Thanks, you saved life of my employer
 
Old 03-11-2008, 08:16 AM   #6
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
Glad I could help.

Forrest
 
  


Reply

Tags
videolan, vlc



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
script init.d anna611 Linux - Newbie 9 11-28-2007 12:22 PM
need help with init script batymahn Linux - Server 1 08-23-2007 11:12 AM
Red5's init script Decoy[403] Linux - Server 0 01-05-2007 08:42 AM
Problem with init script for openssh kaplan71 Linux - Networking 1 04-28-2004 01:32 PM
could use some help with my init.d script.... BrianK Linux - General 3 10-31-2002 07:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 08:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration