I'm using apache2 and postgres running on Ubuntu Server 10.04.
I have removed the startup scripts for both of these apps and I'm using supervisor to monitor and control them. The problem I have run into is that both of these need directories in /var/run (with the correct permissions for the users they run under) for pid files. How do I create these during startup as they need to be created as root and then chown'd to the correct user?
It seems the best way to so this is to creat the directories with custom init scripts. As I have no shell scripting skills at all how do I go about this?