Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[freeplayer] comment ca marche?
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4  
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
BuBuaBu
l33t
l33t


Joined: 09 Jul 2005
Posts: 914
Location: France

PostPosted: Tue Dec 20, 2005 3:43 pm    Post subject: Reply with quote

j'ai une commande pour demarer vlc en daemon (vlc --daemon ...)

Elle fonctionne bien.

Comment faire pour qu'elle s'execute au boot ?
Un init script ? c'est pas bourin ? j'ai essaié celui la :

Code:

#!/sbin/runscript

start() {
ebegin "Starting VLC : "
start-stop-daemon --start --quiet --background --make-pidfile --pidfile /var/run/vlc.pid -x /usr/local/bin/vlc --  --daemon --extraintf=http --http-host=:8080 --http-charset=ISO-8859-1 --sout="#std" --sout-standard-access=udp --sout-standard-mux=ts --sout-standard-url=212.27.38.253:1234 --sout-ts-pid-video=68 --sout-ts-pid-audio=69 --sout-ts-pid-spu=70 --sout-ts-pcr=80 --sout-ts-dts-delay=400 --no-playlist-autostart --subsdec-encoding=ISO-8859-1 --sout-transcode-maxwidth=720 --sout-transcode-maxheight=576 --play-and-stop --http-src="/usr/local/freeplayer//share/http-fbx/" --config="~/.vlc/vlcrc-fbx" --open="$1"
eend $?
}

stop() {

        ebegin "Stopping vlc: "
        start-stop-daemon --oknodo --stop --pidfile /var/run/vlc.pid &>/dev/null
        eend $?

}

restart() {
svc_stop
sleep 3
svc_start
}



Bon quans je fait /etc/init.d/vlc start
ça marche, le restart aussi.

Mais le stop non, où est le problème ?
Back to top
View user's profile Send private message
ercete
Guru
Guru


Joined: 11 Dec 2003
Posts: 426
Location: France, Avignon

PostPosted: Wed Dec 21, 2005 10:13 pm    Post subject: Reply with quote

raoulchatigre wrote:

Car le mode --deamon ne fonctionne pas...


Hum... j'me relirais bien le Collins ce soir...
_________________
Oh look... is it a stockbroker? Is it a quantity Surveyor? Is it a church warden?
NO! It's Bicycle Repair Man!

jadis raoulchatigré
Back to top
View user's profile Send private message
ercete
Guru
Guru


Joined: 11 Dec 2003
Posts: 426
Location: France, Avignon

PostPosted: Sat Dec 24, 2005 2:24 pm    Post subject: Reply with quote

Bon j'ai testé ton script,
la commande stop se base sur un pid stocké dans /var/run/...
Si tu cherches ce pid dans ceux trouvés dans un 'ps aux' tu le trouveras pas !
Et pour cause, le processus initial ayant ce pid est mort et vlc s'est éparpillé en plusieurs fork...

Alors pour l'arrêter faudrait tuer vlc en fonction d'autres paramètres : le nom du programme par exemple
_________________
Oh look... is it a stockbroker? Is it a quantity Surveyor? Is it a church warden?
NO! It's Bicycle Repair Man!

jadis raoulchatigré
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Goto page Previous  1, 2, 3, 4
Page 4 of 4

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum