[02:32] <gp5st1> i added a upstart script, but i can't see it with service
[02:33] <gp5st1> i added the script to /etc/init
[02:38] <gp5st1> http://pastebin.com/vLqv6bMu
[02:38] <gp5st1> is the script
[02:38] <gp5st1> it's at /etc/init/xvfb.conf
[02:39] <gp5st1> 644 perms root:root like the rest of the scripts
[02:48] <ion> Is there an error message in syslog?
[02:48] <gp5st1> not that i can find
[02:49] <gp5st1> is there anything specific i can grep for? I tried service and ubuntu
[02:49] <gp5st1> err upstart
[02:53] <gp5st1> ion: also tried grepping for init and the name of the file
[03:14] <gp5st1> ok, so now i'm getting the processes respawning too fast and always dieing with a status of 127; is that upstart or me? (e.g.: syntax error?)
[03:16] <ion> script
[03:16] <ion>   exec >/tmp/xvfb.log 2>&1
[03:16] <ion>   set -x
[03:16] <ion>   exec Xvfb :1 -screen 0 1600x1200x16
[03:16] <ion> end script
[03:16] <gp5st1> thanks ion
[03:27] <gp5st1> why would i get permission denied when i try to source (.) a file? 
[03:38] <gp5st1> i removed the exec before the . now it just complains that [[ isn't valid
[03:39] <gp5st1> so i take it you can't source anything in upstart?
[03:39] <ion> [[ is a bashism.
[03:39] <gp5st1> i'm trying to get rvm to work fwiw
[03:40] <gp5st1> that comes from the rvm init script
[03:41] <gp5st1> http://irclogs.ubuntu.com/2010/05/27/%23upstart.html
[03:41] <gp5st1> let me just read it so you don't have to repeat yourself:-p
[03:48] <gp5st1> cool
[03:48] <gp5st1> io your suggestion worked:)
[15:28] <djszapi> mmh, I always thought upstart is the parent of each processes, but seems not.
[22:05] <bencc> I need to run a daemon as someuser
[22:05] <bencc> do I need to run it with 'exec sudo su someuser -c "/some/script" '
[22:05] <bencc> or 'exec sudo -u someuser -i /some/script' ?
[22:08] <SeveredCross> I think there's a configuration stanza that'll automatically take care of the user change for you.
[22:09] <DrScott> i run daily backups started via anacron. Once a backup job has been started, i want to prevent the system going down. Prior to upstart i use runnlevel scripts which blocked as long as a certain lock file exists. How do i achieve this on a upstart system? Network must stay enabled as i rsync(ssh) to another machine. After backup completes, the lockfile is removed.
[22:10] <bencc> SeveredCross: what do you mean by 'configuration stanza' ?
[22:11] <bencc> SeveredCross: right now I need to export the user's home folder and run the script with this user
[22:11] <SeveredCross> Never mind, I thought there was a line you could put in the job's .conf file, but there isn't.
[22:12] <SeveredCross> Since the jobs are all started by init, which runs as root, you don't need exec sudo su.
[22:12] <SeveredCross> exec su someuser -c "/some/script" should be good enough.
[22:12] <bencc> SeveredCross: ok
[22:12] <bencc> what about "exec -u someuser -i /script"
[22:12] <bencc> make sense?
[22:15] <SeveredCross> Er, you mean exec sudo -u someuser -i /script?
[22:15] <SeveredCross> That'd work too.
[22:17] <bencc> you said I don't need the sudo
[22:18] <SeveredCross> exec -u someuser -i /script won't work, unless upstart's exec supports -u.
[22:19] <SeveredCross> Which it doesn't, and it's not likely that your shell does either.
[22:19] <soren> Never heard of "exec -u"
[22:19] <SeveredCross> Nor have I.
[22:20] <bencc> ok. thanks
[22:25] <DrScott> is it possible to block upstart?