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