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
script
is used for running multiple commands, I think in this case its better to use theexec
stanza instead. Its actually quite similar to the above example: just drop thescript
parts and leave onlyexec bash -c '/etc/kvm_manage start'
. Also, if kvm_manage is an executable with a she-bang, then you don't even need that, just useexec /etc/kvm_manage start
. – Vulcanism