-
Notifications
You must be signed in to change notification settings - Fork 444
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow to override upstart script templates #182
Comments
If the Upstart scripts don't work with 13.10 then there is a regression within sbt-native-packager. Could you create a separate ticket with details about the problem with Upstart so we can look into it. In the mean time I will double check within my own test VM's. I'm presently using Ubuntu 12.04 |
You should be able to override this with linuxStartScriptTemplate in Debian := ... Or you put a file Can you provide some details on the application you are trying to run? Other errors foundStill I found some issues while going through the code.
|
@aparkinson apologies: on further inspection the underlying issue was caused by the absence of a @muuki88 thanks for the info. I'll try this again if/when I have a need to use custom Upstart job templates - the above resolution means I can keep with the existing template :) |
Thanks for sharing. I leave this ticket open as IMHO we should provide at least a warning on an empty |
Hmm, I think maybe we should open a new ticket about |
This works fine for me, although I am just about to open another ticket asking for a similar override functionality for the other Debian scripts (specifically My users are required to configure the application before the service can be started. A sensible default configuration cannot be provided, as passwords are required etc. Consequently, having the post-install script start the service is a bad idea (in this instance). The script I actually want to run looks more like:
I am currently achieving this through the following hack in my
|
You can do this easily by placing your |
Thanks, will check this out later today :) |
Tested this just now - am I right in saying this way does not support substitutions? I get the following error around
|
The replacements for linux haven't been completly unified. The "author" -> author,
"descr" -> descr,
"name" -> name,
"version" -> version So you should try |
Brilliant, thanks! |
The ability to override bin templates was recently added here:
699e24b
Is it possible to add something similar for Upstart scripts? The existing script does not work for Ubuntu 13.10, so I am having to add my own. However,
JavaAppStartScript
is hardcoded to use the built-in templates.So the following code I have added to
build.sbt
has no effect:The text was updated successfully, but these errors were encountered: