Ubuntu ESD Init Startup Script
Sunday, February 26th, 2006Bit of a geek tangent here, but this is the second time I’ve written this script and I intend to keep it around somewhere.
This script starts the Enlightened Sound Daemon using start-stop-daemon, which is the Correctâ„¢ way to do it. Currently, the arguments for ESD are hardcoded for network use, but by removing -- and everything following in the start command, you could simply put the options in the ESD configuration file.
Basically, put this in /etc/init.d/ on Ubuntu machines and create soft links to it from the runlevels you want to use the soundserver in, for example:
# ln -s /etc/init.d/esd /etc/rc2.d/S99esd
It should work with minimal modification on Debian systems — I haven’t used Debian for a while so this may be different now, but you may need to change the log_* commands to simple print commands.
Email me if you have any questions or suggestions on how to make it better. I do realize it should implement the reload and restart directives, but this isn’t a particularly system-critical service.