View previous topic :: View next topic |
Author |
Message |
Anonymous Guest
|
Posted: Sat Jul 02, 2005 11:48 pm Post subject: [tip] starting icecast automatically at startup (linux) |
|
|
some ideas for getting icecast to run automatically
run icecast automatically at startup (rc.local script method):
1. you should be running icecast as a non-root user. create the user if you havent already, and make sure you can login with that user (ie, ssh or console)
2. create and assign ownership (if you havent already) of the /var/log/icecast directory. make sure the directory is owned by the user that will be running icecast or logging might fail
example:
Code: |
chown username /var/log/icecast |
(where username is the above user)
3. place the following in your local startup script - varies by distro (ex: redhat = /etc/rc.d/rc.local)
Code: |
su -l username -c '/path/to/icecast -c /path/to/configfile &' |
reboot the box; check that its working
note: this is a non-interactive startup (meaning you dont get any console output), but that really isnt necessary, as you just check to see that icecast webpage is up and running at http://youricecastip:youricecastport/ (Ex: http://localhost:8000/). If you see a icecast page, then its running ok. also, check your logs often, as that is always a good idea
The easiest way to shutdown icecast is with the
command, where pid is the process id of icecast. Use
to find the pid of icecast.
------------
this was tested on Redhat and should work on most systems |
|
Back to top |
|
 |
Anonymous Guest
|
Posted: Tue Apr 18, 2006 2:56 pm Post subject: a question about directory |
|
|
hello i view this exellent post but when i go to /var/log/icecast directory i do not found,
my cuestion is if i have to create this and if the access.log and error.log should be in /var/log/icecast directory because i have these in the /path/to/icecast directory and my second cuestion is if i am to do right write the next in the rc.local su -l username -c '/var/www/vhost/domain/icecast -c /var/www/vhost/domain/icecast/icecast.xml &'
if somebody can help me please answer this post |
|
Back to top |
|
 |
|
|
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
|
Powered by phpBB © 2001, 2002 phpBB Group subRebel style by ktauber
|