detect which event started/stopped me
Asked by
Alex Nekrasov
I have a number of events that stop a components:
stop on stopped comp1 failed
stop on stopped comp2 failed
stop on stopped comp3 failed
post-stop script
case "$reason" in
comp1)
;;
comp2)
;;
comp3)
;;
esac
end script
How do I populate the $reason?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- upstart Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Scott James Remnant (Canonical)
- Solved:
- Last query:
- Last reply:
To post a message you must log in.