Having just played with this I thought some people might find this useful. Later versions of Ubuntu have upstart to manage system processes, and I've just got this working with cgate. Basics: I have a cgate user/group, and my cgate files are installed in /opt/cgate (owned by the cgate user). I created /etc/init/cgate.conf as follows: [code]# C-Gate Service description "C-Gate" author "Mark Rogers <mark@more-solutions.co.uk>" start on (net-device-up and local-filesystems and runlevel [2345]) stop on runlevel [016] respawn script cd /opt/cgate sudo -ucgate -gcgate java -noverify -jar cgate.jar end script [/code].. then start it with [code]sudo start cgate[/code]If cgate dies (or I kill it) it automatically restarts as it should. (To stop it properly, use "sudo stop cgate".) I particularly like the fact that I will have another service that depends on cgate, so it's .conf file will include: [code]start on started cgate stop on stopped cgate[/code]so that it starts automatically when cgate does, and stops automatically if cgate does. Note that it's early days and I haven't tested this much yet, I thought I'd share it while it was fresh in my mind! </mark@more-solutions.co.uk>