-
Notifications
You must be signed in to change notification settings - Fork 443
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
systemd service customization (open files) #728
Comments
At the moment you have the following options Override the complete scriptThis is documented here. You have to configure everything your self. We should add that to the archetype cheatsheet Hack it into predefined settingsThere are currently four settings
which are essentially strings. You could add your settings in there, but this is rather bad. SolutionI like the idea of a generic data structure where you can append things which will be added to the start script. Most of the heavy lifting is done in JavaServerBashScript, which reads the templates and substitutes the placeholders. However the system-loaders are so different, it's hard to provide a generic setting that fits for all. For @francisdb if you have a good idea how to make things work for all systemloaders in an easy way? |
Overriding the script is always a solution but not preferable as you might forget to update your copy when the source is updated (bug fixes, refactorings, ...) Even appending might not fit all as some systems. I fear it will be quite hard to come up with a solution for all loaders/supported packagings. I guess this will have to be a case-by-case solution or the override solution |
Now that Systemloaders are separate AutoPlugins (SystemdPlugin we can tackle this issue. There is another issue were some ideas have been discussed. Closing this in favor of #937 |
Would be nice to have a way to customise the systemd service file the same way as we can do with the bat/bash files. More specifically we would need to add the open files limit option:
http://www.freedesktop.org/software/systemd/man/systemd.exec.html
Eg:
When using systemd you might need to set LimitNOFILE=10500 in the service file.
Manual way to do this:
For the bash file this can be done like this (when not using systemd)
Might even be interesting to have a unified way to set up open file limits...
In case you want to see the applied limits to your service
cat /proc/$(cat /var/run/myapp/play.pid)/limits
The text was updated successfully, but these errors were encountered: