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?
Thanks!
- hoolio
Cirrostratus
In BIG-IP 4.x, the only supported method for running startup scripts was using /config/startup. This is described in SOL3689: - fkuser_104673
Nimbostratus
Ok.../bin/log_to_file &
- hoolio
Cirrostratus
What is the actual content of the /bin/log_to_file script? - fkuser_104673
Nimbostratus
The 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
- hoolio
Cirrostratus
Maybe there is an error with the script? If you run it from the command line, does it run successfully? If so, can you try redirecting the stderr and stdout to a file from /config/startup? - fkuser_104673
Nimbostratus
Executed trough command line it works perfect (at least it keeps running and no error are shown) maybe the execution at boot time will be different.
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