init.d Script for Trac on Ubuntu Linux

I modified an nginx init.d script and created an init.d script for trac.d. I run tracd and then forward traffic from trac.davidgrant.ca to trac's port (using nginx) rather than using cgi or fast-cgi. Please let me know if you have any problems with this scripts and I will fix it.

 

After you create the script at  , don't forget to do the following:

 

to make the script executable and to make it run on startup.

Tags:

Comments

thank you for sharing it, it works for me too :-)

This works just great. Thanks a lot :)

I used this script and I had to remove the -r in the DAEMON_OPTS (the port 8080 one), to make it work.

It's just a script I was looking for, because I'm too lazy admin to write it myself ;) Of course I need to do some customization, for example add a dependency on Nginx, but it's a great start point for me. Thank you very much, David!

Thank you for a straightforward script.

Ubuntu 12.04 here, had to change executable path from /usr/bin/tracd to /usr/local/bin/tracd and hack up my own DAEMON_OPTS but you made it easy for me -- Thank you so much David!

Add new comment