I am working on a project that needs to manage the ulimit through custom services file (lets say demo.service) on Linux.
I need to add a mechanism where my custom services file should attempt to set the current file descriptor to:
max( current_limit, min(hard_limit, 10240) )
Is this achievable?