Hi can i use the old style init scripts under ub 12.04? im fed up with my upstart scripts working intermittently.
I have a process which relies on cifs mounts (defined in fstab). I've tried all the usual 'wait for the interface' and 'wait for the local filesystem' dependencies in my upstart but nothing seems to work. My command works fine on the cmd line.
I think what's happening is that cifs hasn't mounted at the time the upstart script tries to run. Upstart just seems broken to me.
start on (local-filesystems and net-device-up IFACE=eth0 and mounted MOUNTPOINT=/storage/server) stop on shutdown expect daemon script cd /storage/server/scripts/myprog su -c "/home/gurpal2000/ruby-1.9.3-p0/bin/bundle exec /home/gurpal2000/ruby-1.9.3-p0/bin/ruby lib/main.rb > /storage/server/logs/myprog.txt 2>&1" gurpal2000 end script