Change systemd stop job timeout in NixOS configuration

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












The systemd stop job timeout defaults to 90s. Does NixOS have a configuration parameter to change this value?







share|improve this question























    up vote
    0
    down vote

    favorite












    The systemd stop job timeout defaults to 90s. Does NixOS have a configuration parameter to change this value?







    share|improve this question





















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      The systemd stop job timeout defaults to 90s. Does NixOS have a configuration parameter to change this value?







      share|improve this question











      The systemd stop job timeout defaults to 90s. Does NixOS have a configuration parameter to change this value?









      share|improve this question










      share|improve this question




      share|improve this question









      asked Jun 6 at 19:06









      Matthew Piziak

      5319




      5319




















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          1
          down vote



          accepted










          Add the following to your configuration.nix:



          systemd.extraConfig = ''
          DefaultTimeoutStopSec=10s
          '';





          share|improve this answer




























            up vote
            0
            down vote













            I don't know about NixOS specifically, but man systemd-system.conf for me lists DefaultTimeoutStopSec= as the default timeout for ... stopping of units. A local administrator would typically change this in /etc/systemd/system.conf. A Unit can have its own TimeoutStopSec= value.






            share|improve this answer





















              Your Answer







              StackExchange.ready(function()
              var channelOptions =
              tags: "".split(" "),
              id: "106"
              ;
              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',
              convertImagesToLinks: false,
              noModals: false,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: null,
              bindNavPrevention: true,
              postfix: "",
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              );



              );








               

              draft saved


              draft discarded


















              StackExchange.ready(
              function ()
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f448268%2fchange-systemd-stop-job-timeout-in-nixos-configuration%23new-answer', 'question_page');

              );

              Post as a guest






























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes








              up vote
              1
              down vote



              accepted










              Add the following to your configuration.nix:



              systemd.extraConfig = ''
              DefaultTimeoutStopSec=10s
              '';





              share|improve this answer

























                up vote
                1
                down vote



                accepted










                Add the following to your configuration.nix:



                systemd.extraConfig = ''
                DefaultTimeoutStopSec=10s
                '';





                share|improve this answer























                  up vote
                  1
                  down vote



                  accepted







                  up vote
                  1
                  down vote



                  accepted






                  Add the following to your configuration.nix:



                  systemd.extraConfig = ''
                  DefaultTimeoutStopSec=10s
                  '';





                  share|improve this answer













                  Add the following to your configuration.nix:



                  systemd.extraConfig = ''
                  DefaultTimeoutStopSec=10s
                  '';






                  share|improve this answer













                  share|improve this answer



                  share|improve this answer











                  answered Aug 2 at 16:59









                  Mic92

                  1612




                  1612






















                      up vote
                      0
                      down vote













                      I don't know about NixOS specifically, but man systemd-system.conf for me lists DefaultTimeoutStopSec= as the default timeout for ... stopping of units. A local administrator would typically change this in /etc/systemd/system.conf. A Unit can have its own TimeoutStopSec= value.






                      share|improve this answer

























                        up vote
                        0
                        down vote













                        I don't know about NixOS specifically, but man systemd-system.conf for me lists DefaultTimeoutStopSec= as the default timeout for ... stopping of units. A local administrator would typically change this in /etc/systemd/system.conf. A Unit can have its own TimeoutStopSec= value.






                        share|improve this answer























                          up vote
                          0
                          down vote










                          up vote
                          0
                          down vote









                          I don't know about NixOS specifically, but man systemd-system.conf for me lists DefaultTimeoutStopSec= as the default timeout for ... stopping of units. A local administrator would typically change this in /etc/systemd/system.conf. A Unit can have its own TimeoutStopSec= value.






                          share|improve this answer













                          I don't know about NixOS specifically, but man systemd-system.conf for me lists DefaultTimeoutStopSec= as the default timeout for ... stopping of units. A local administrator would typically change this in /etc/systemd/system.conf. A Unit can have its own TimeoutStopSec= value.







                          share|improve this answer













                          share|improve this answer



                          share|improve this answer











                          answered Jun 7 at 8:11









                          meuh

                          29.2k11648




                          29.2k11648






















                               

                              draft saved


                              draft discarded


























                               


                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function ()
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f448268%2fchange-systemd-stop-job-timeout-in-nixos-configuration%23new-answer', 'question_page');

                              );

                              Post as a guest













































































                              Popular posts from this blog

                              How to check contact read email or not when send email to Individual?

                              Bahrain

                              Postfix configuration issue with fips on centos 7; mailgun relay