On Saturday 20 May 2006 21:17, Sergey Mkrtchyan wrote:
Leendert Meyer wrote:
1. Did you read /etc/init.d/README and /etc/init.d/skeleton? Also 'man insserv' (the 'DESCRIPTION' section) has usefull info.
2. The glue is /etc/init.d/rc. It calls the S??xxx scripts with the 'start' parameter, and the K??xxx with the stop parameter.
Dear Leendert, Thank you very much, I should have read the README before posting, but haven't formed that habit yet ;)...
It wouldn't be a bad habit at all... ;P
It seems Sergey unintentionally "disguised" his real problem well.
The problem wasn't actually to make xmms autostart with the boot, I was just trying to do something "on my own" with that scripts and starting xmms was the first thing which came to my mind.
:) Hmm, xmms is not the easiest thing to start with, as it depends on X. And for which user should it run? Maybe better try to 'autorun' xmms from an Autostart directory as suggested in other messages in this thread. Why not start from the skeleton, change the start and stop sections to do something simple, like: echo "$(date +%FT%T%z): FOO started" >> /tmp/FOO.log and echo "$(date +%FT%T%z): FOO stopped" >> /tmp/FOO.log (log files normally would go to /var/log/, but since your playing, I think /tmp/ is better) Play a bit with the INIT INFO section, etc. and expand from there.
Can you point me some good documentation for it?
Carlos already provided you some docs. ;) Cheers, Leen