I would like run my bash script (kvm_manage) in startup, and it doesnt work. Here is my upstart .conf script:
description "kvm start skript"
start on local-filesystem
stop on shutdown
respawn
script
exec /etc/kvm_manage start
end script
I want run it with argument "start". It is possible? What should I change?
thanks for help
Running a command via
execwith arguments is fine - see http://upstart.ubuntu.com/wiki/Stanzas#exec which gives such an example.However, upstart will use
/bin/shnotbash, so if your script needs bash you'd need something likeUpdate: See also the suggestion in the comments from Guss to use the
execstanza instead for simple cases:Or if
kvm_manageis an executable with a she-bang (#!/bin/bash), then simply: