another limits.conf question : limit nofiles specifically for a process.xsession. .xinitrc, xmonad, and lightdmHow to mount all partitions at system startupHow to create (via installer script) a task that will install my bash script so it runs on DE startup?delay of startup applications, dropbox specificallyLimit the parallelisation of Upstart?Ubuntu 17.10: "a start job is running for Hold until boot process finishes up (time/no limit)Dual boot question

Do all humans have an identical nucleotide sequence for certain proteins, e.g haemoglobin?

Resume: How to quantify my contributions as a software engineer?

I asked for a graduate student position from a professor. He replied "welcome". What does that mean?

Gravity on an Orbital Ring

What is this unknown executable on my boot volume? Is it Malicious?

Are Democrats more likely to believe Astrology is a science?

Should I leave the first authorship of our paper to the student who did the project whereas I solved it?

A medieval fantasy adventurer lights a torch in a 100% pure oxygen room. What happens?

What was the relationship between Einstein and Minkowski?

Leaving out pronouns in informal conversation

Where to disclose a zero day vulnerability

How can I locate a missing person abroad?

Is there an inconsistency about Natasha Romanoff's middle name in the MCU?

Relocation error, error code (127) after last updates

Can a corpse possessed by a Dybbuk be turned via Turn Undead?

What jurisdiction do Scottish courts have over the Westminster parliament?

Is this WWI movie scene realistic?

What's the biggest organic molecule that could have a smell?

What is my breathable atmosphere composed of?

Do ibuprofen or paracetamol cause hearing loss?

Mean π: Archimedes vs. Gauss - π computation through generalized means

Is it appropriate for a professor to require students to sign a non-disclosure agreement before being taught?

How can I fix a framing mistake so I can drywall?

How to help my 2.5-year-old daughter take her medicine when she refuses to?



another limits.conf question : limit nofiles specifically for a process


.xsession. .xinitrc, xmonad, and lightdmHow to mount all partitions at system startupHow to create (via installer script) a task that will install my bash script so it runs on DE startup?delay of startup applications, dropbox specificallyLimit the parallelisation of Upstart?Ubuntu 17.10: "a start job is running for Hold until boot process finishes up (time/no limit)Dual boot question






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















My /etc/security/limits.conf file looks like this



* soft nofile 1024
* hard nofile 2048
couchdb soft nofile 35000
couchdb hard nofile 35000
root soft nofile 65535
root hard nofile 65535


I want to have a specific limit for my couchdb process, for root and for the rest.
The above does not work.



How is one supposed ot setup limits for a process (which starts automatically on startup) as opposed to a user ?










share|improve this question
























  • use "control groups" ( en.wikipedia.org/wiki/Cgroups )?

    – Rinzwind
    Apr 15 at 9:47











  • couchdb must be either a user name or a group name. Did you create either a user or group for couchdb? Please report to @marmayogi

    – Marmayogi
    Apr 15 at 9:50












  • I created a group couchdb including the user couchdb in /etc/group and that seemed to have done the trick. thks @Rinzwind. If you want to post as answer i'll validate

    – Chapo
    Apr 15 at 10:06


















0















My /etc/security/limits.conf file looks like this



* soft nofile 1024
* hard nofile 2048
couchdb soft nofile 35000
couchdb hard nofile 35000
root soft nofile 65535
root hard nofile 65535


I want to have a specific limit for my couchdb process, for root and for the rest.
The above does not work.



How is one supposed ot setup limits for a process (which starts automatically on startup) as opposed to a user ?










share|improve this question
























  • use "control groups" ( en.wikipedia.org/wiki/Cgroups )?

    – Rinzwind
    Apr 15 at 9:47











  • couchdb must be either a user name or a group name. Did you create either a user or group for couchdb? Please report to @marmayogi

    – Marmayogi
    Apr 15 at 9:50












  • I created a group couchdb including the user couchdb in /etc/group and that seemed to have done the trick. thks @Rinzwind. If you want to post as answer i'll validate

    – Chapo
    Apr 15 at 10:06














0












0








0








My /etc/security/limits.conf file looks like this



* soft nofile 1024
* hard nofile 2048
couchdb soft nofile 35000
couchdb hard nofile 35000
root soft nofile 65535
root hard nofile 65535


I want to have a specific limit for my couchdb process, for root and for the rest.
The above does not work.



How is one supposed ot setup limits for a process (which starts automatically on startup) as opposed to a user ?










share|improve this question














My /etc/security/limits.conf file looks like this



* soft nofile 1024
* hard nofile 2048
couchdb soft nofile 35000
couchdb hard nofile 35000
root soft nofile 65535
root hard nofile 65535


I want to have a specific limit for my couchdb process, for root and for the rest.
The above does not work.



How is one supposed ot setup limits for a process (which starts automatically on startup) as opposed to a user ?







18.04 startup autostart






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Apr 15 at 9:08









ChapoChapo

1112 bronze badges




1112 bronze badges















  • use "control groups" ( en.wikipedia.org/wiki/Cgroups )?

    – Rinzwind
    Apr 15 at 9:47











  • couchdb must be either a user name or a group name. Did you create either a user or group for couchdb? Please report to @marmayogi

    – Marmayogi
    Apr 15 at 9:50












  • I created a group couchdb including the user couchdb in /etc/group and that seemed to have done the trick. thks @Rinzwind. If you want to post as answer i'll validate

    – Chapo
    Apr 15 at 10:06


















  • use "control groups" ( en.wikipedia.org/wiki/Cgroups )?

    – Rinzwind
    Apr 15 at 9:47











  • couchdb must be either a user name or a group name. Did you create either a user or group for couchdb? Please report to @marmayogi

    – Marmayogi
    Apr 15 at 9:50












  • I created a group couchdb including the user couchdb in /etc/group and that seemed to have done the trick. thks @Rinzwind. If you want to post as answer i'll validate

    – Chapo
    Apr 15 at 10:06

















use "control groups" ( en.wikipedia.org/wiki/Cgroups )?

– Rinzwind
Apr 15 at 9:47





use "control groups" ( en.wikipedia.org/wiki/Cgroups )?

– Rinzwind
Apr 15 at 9:47













couchdb must be either a user name or a group name. Did you create either a user or group for couchdb? Please report to @marmayogi

– Marmayogi
Apr 15 at 9:50






couchdb must be either a user name or a group name. Did you create either a user or group for couchdb? Please report to @marmayogi

– Marmayogi
Apr 15 at 9:50














I created a group couchdb including the user couchdb in /etc/group and that seemed to have done the trick. thks @Rinzwind. If you want to post as answer i'll validate

– Chapo
Apr 15 at 10:06






I created a group couchdb including the user couchdb in /etc/group and that seemed to have done the trick. thks @Rinzwind. If you want to post as answer i'll validate

– Chapo
Apr 15 at 10:06











1 Answer
1






active

oldest

votes


















0
















If it helps anyone, based on the comment from @Rinzwind I added a line in /etc/group



couchdb:x:10000:couchdb


and it did the trick.






share|improve this answer



























    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "89"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );














    draft saved

    draft discarded
















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1134009%2fanother-limits-conf-question-limit-nofiles-specifically-for-a-process%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0
















    If it helps anyone, based on the comment from @Rinzwind I added a line in /etc/group



    couchdb:x:10000:couchdb


    and it did the trick.






    share|improve this answer





























      0
















      If it helps anyone, based on the comment from @Rinzwind I added a line in /etc/group



      couchdb:x:10000:couchdb


      and it did the trick.






      share|improve this answer



























        0














        0










        0









        If it helps anyone, based on the comment from @Rinzwind I added a line in /etc/group



        couchdb:x:10000:couchdb


        and it did the trick.






        share|improve this answer













        If it helps anyone, based on the comment from @Rinzwind I added a line in /etc/group



        couchdb:x:10000:couchdb


        and it did the trick.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Apr 15 at 23:28









        ChapoChapo

        1112 bronze badges




        1112 bronze badges































            draft saved

            draft discarded















































            Thanks for contributing an answer to Ask Ubuntu!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1134009%2fanother-limits-conf-question-limit-nofiles-specifically-for-a-process%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Tamil (spriik) Luke uk diar | Nawigatjuun

            Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

            Training a classifier when some of the features are unknownWhy does Gradient Boosting regression predict negative values when there are no negative y-values in my training set?How to improve an existing (trained) classifier?What is effect when I set up some self defined predisctor variables?Why Matlab neural network classification returns decimal values on prediction dataset?Fitting and transforming text data in training, testing, and validation setsHow to quantify the performance of the classifier (multi-class SVM) using the test data?How do I control for some patients providing multiple samples in my training data?Training and Test setTraining a convolutional neural network for image denoising in MatlabShouldn't an autoencoder with #(neurons in hidden layer) = #(neurons in input layer) be “perfect”?