Forum Discussion
fkuser_104673
Nimbostratus
Oct 20, 2009Add custom script at startup
It's possible to add a custom script at startup?
It's very easy actually... that's possible by using chkconfig command, but there's another choice? as example using the bigstart command...
fkuser_104673
Nimbostratus
Oct 22, 2009The code is the next:
if [ -e /config/file.pipe ]; then
while [ -e /config/file.pipe ]
do
tail -f /var/log/wa/access/file.log > /config/file.pipe
done
else
mkfifo /config/file.pipe
fi
It's related with this post.
http://devcentral.f5.com/Default.aspx?tabid=53&forumid=31&postid=85477&view=topic
I use the script to send the WA log files to a pipe; that pipe is used finally as a source to syslog-ng config file.
It should be an infinite loop, but it seems that it isn't.
Thanks
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects