Here is an example snippet:
http://upstart.ubuntu.com/cookbook/#pre-start-example-ubuntu-specific
"""
pre-start script
# stop job from continuing if no config file found for daemon
[ ! -f /etc/default/myapp ] && { stop; exit 0; }
# source the config file
. /etc/default/myapp
# stop job from continuing if admin has not enabled service in
# config file.
[ -z "$ENABLED" ] && { stop; exit 0; }
end script
"""
You will need to source the config file again to get the customized
options.
If you implement the pre-start correctly, I'd be happy to sponsor this
into Ubuntu.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1031035
Title:
Transmission daemon upstart support
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/transmission/+bug/1031035/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs