Are they are tutorials on deploying a go application to ubuntu, and is it common to use upstart to start the process?
Are they are tutorials on deploying a go application to ubuntu, and is it common to use upstart to start the process?
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
var upstartScript = `# {{.Description}} description "{{.Display}}" start on filesystem or runlevel [2345] stop on runlevel [!2345] #setuid username kill signal INT respawn respawn limit 10 5 umask 022 console none pre-start script test -x {{.Path}} || { stop; exit 0; } end script # Start exec {{.Path}} `
Upstart restarts on crashes as well.
Do you tend to manually install the upstart script manually when setting up your app on a server or do you use a bash (or other) script for bootstrapping the server for your app, including creating the upstart script? I'm leaning towards creating a bootstrap type script that would do this and any examples of what you all use would be great.