rc.sysinit replacement for systemd for early action
Clash 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.
centos rhel systemd
add a comment |Â
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.
centos rhel systemd
add a comment |Â
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.
centos rhel systemd
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.
centos rhel systemd
asked Jun 14 at 14:33
tonioc
1,10457
1,10457
add a comment |Â
add a comment |Â
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
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 needDefaultDependencies=no
otherwise i think you will have an ordering cycle/contradiction
â sourcejedi
Jun 28 at 7:11
add a comment |Â
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
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 needDefaultDependencies=no
otherwise i think you will have an ordering cycle/contradiction
â sourcejedi
Jun 28 at 7:11
add a comment |Â
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
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 needDefaultDependencies=no
otherwise i think you will have an ordering cycle/contradiction
â sourcejedi
Jun 28 at 7:11
add a comment |Â
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
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
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 needDefaultDependencies=no
otherwise i think you will have an ordering cycle/contradiction
â sourcejedi
Jun 28 at 7:11
add a comment |Â
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 needDefaultDependencies=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
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password