rc.sysinit replacement for systemd for early action

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











up vote
0
down vote

favorite












With rhel6 / centos6 I used to set some very early actions (like changing default CPU affinity settings) in rc.sysinit early steps.



Now with rhel7/centos7 and systemd, what would be the right way for doing so?
I was thinking about adding some dedicated service constraint in early target like local-fs-pre.target.



Any comments about this will be welcome.







share|improve this question























    up vote
    0
    down vote

    favorite












    With rhel6 / centos6 I used to set some very early actions (like changing default CPU affinity settings) in rc.sysinit early steps.



    Now with rhel7/centos7 and systemd, what would be the right way for doing so?
    I was thinking about adding some dedicated service constraint in early target like local-fs-pre.target.



    Any comments about this will be welcome.







    share|improve this question





















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      With rhel6 / centos6 I used to set some very early actions (like changing default CPU affinity settings) in rc.sysinit early steps.



      Now with rhel7/centos7 and systemd, what would be the right way for doing so?
      I was thinking about adding some dedicated service constraint in early target like local-fs-pre.target.



      Any comments about this will be welcome.







      share|improve this question











      With rhel6 / centos6 I used to set some very early actions (like changing default CPU affinity settings) in rc.sysinit early steps.



      Now with rhel7/centos7 and systemd, what would be the right way for doing so?
      I was thinking about adding some dedicated service constraint in early target like local-fs-pre.target.



      Any comments about this will be welcome.









      share|improve this question










      share|improve this question




      share|improve this question









      asked Jun 14 at 14:33









      tonioc

      1,10457




      1,10457




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          You would add a new .service file to /etc/systemd/system. ExecStart= would contain your action, while Before= After=, Requires= would help specify another service or target name related to when you wanted the action to run during boot.



          References



          • man systemd.unit

          • man systemd.service





          share|improve this answer





















          • Yes, this is what I meant by "adding some dedicated service constraint to ... ", I should have written "adding some dedicated service as a constraint to ... ". thanks.
            – tonioc
            Jun 14 at 14:56










          • if u want to write something for local-fs-pre, i think u will need DefaultDependencies=no otherwise i think you will have an ordering cycle/contradiction
            – sourcejedi
            Jun 28 at 7:11











          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%2f449823%2frc-sysinit-replacement-for-systemd-for-early-action%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          0
          down vote













          You would add a new .service file to /etc/systemd/system. ExecStart= would contain your action, while Before= After=, Requires= would help specify another service or target name related to when you wanted the action to run during boot.



          References



          • man systemd.unit

          • man systemd.service





          share|improve this answer





















          • Yes, this is what I meant by "adding some dedicated service constraint to ... ", I should have written "adding some dedicated service as a constraint to ... ". thanks.
            – tonioc
            Jun 14 at 14:56










          • if u want to write something for local-fs-pre, i think u will need DefaultDependencies=no otherwise i think you will have an ordering cycle/contradiction
            – sourcejedi
            Jun 28 at 7:11















          up vote
          0
          down vote













          You would add a new .service file to /etc/systemd/system. ExecStart= would contain your action, while Before= After=, Requires= would help specify another service or target name related to when you wanted the action to run during boot.



          References



          • man systemd.unit

          • man systemd.service





          share|improve this answer





















          • Yes, this is what I meant by "adding some dedicated service constraint to ... ", I should have written "adding some dedicated service as a constraint to ... ". thanks.
            – tonioc
            Jun 14 at 14:56










          • if u want to write something for local-fs-pre, i think u will need DefaultDependencies=no otherwise i think you will have an ordering cycle/contradiction
            – sourcejedi
            Jun 28 at 7:11













          up vote
          0
          down vote










          up vote
          0
          down vote









          You would add a new .service file to /etc/systemd/system. ExecStart= would contain your action, while Before= After=, Requires= would help specify another service or target name related to when you wanted the action to run during boot.



          References



          • man systemd.unit

          • man systemd.service





          share|improve this answer













          You would add a new .service file to /etc/systemd/system. ExecStart= would contain your action, while Before= After=, Requires= would help specify another service or target name related to when you wanted the action to run during boot.



          References



          • man systemd.unit

          • man systemd.service






          share|improve this answer













          share|improve this answer



          share|improve this answer











          answered Jun 14 at 14:46









          Mark Stosberg

          3,4191023




          3,4191023











          • Yes, this is what I meant by "adding some dedicated service constraint to ... ", I should have written "adding some dedicated service as a constraint to ... ". thanks.
            – tonioc
            Jun 14 at 14:56










          • if u want to write something for local-fs-pre, i think u will need DefaultDependencies=no otherwise i think you will have an ordering cycle/contradiction
            – sourcejedi
            Jun 28 at 7:11

















          • Yes, this is what I meant by "adding some dedicated service constraint to ... ", I should have written "adding some dedicated service as a constraint to ... ". thanks.
            – tonioc
            Jun 14 at 14:56










          • if u want to write something for local-fs-pre, i think u will need DefaultDependencies=no otherwise i think you will have an ordering cycle/contradiction
            – sourcejedi
            Jun 28 at 7:11
















          Yes, this is what I meant by "adding some dedicated service constraint to ... ", I should have written "adding some dedicated service as a constraint to ... ". thanks.
          – tonioc
          Jun 14 at 14:56




          Yes, this is what I meant by "adding some dedicated service constraint to ... ", I should have written "adding some dedicated service as a constraint to ... ". thanks.
          – tonioc
          Jun 14 at 14:56












          if u want to write something for local-fs-pre, i think u will need DefaultDependencies=no otherwise i think you will have an ordering cycle/contradiction
          – sourcejedi
          Jun 28 at 7:11





          if u want to write something for local-fs-pre, i think u will need DefaultDependencies=no otherwise i think you will have an ordering cycle/contradiction
          – sourcejedi
          Jun 28 at 7:11













           

          draft saved


          draft discarded


























           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f449823%2frc-sysinit-replacement-for-systemd-for-early-action%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?

          Christian Cage

          How to properly install USB display driver for Fresco Logic FL2000DX on Ubuntu?