How to run a script during power on and power off of the server?How do I power down on reboot?How to continue...

Is disk brake effectiveness mitigated by tyres losing traction under strong braking?

How can I get people to remember my character's gender?

Why symmetry transformations have to commute with Hamiltonian?

Why does sound not move through a wall?

What do I do if my advisor made a mistake?

How long would it take for people to notice a mass disappearance?

Can there be a single technologically advanced nation, in a continent full of non-technologically advanced nations?

Dihedral group D4 composition with custom labels

Has a commercial or military jet bi-plane ever been manufactured?

When an imagined world resembles or has similarities with a famous world

Has the Hulk always been able to talk?

Handling Null values (and equivalents) routinely in Python

It is as simple as ABC

Has the United States ever had a non-Christian President?

Out of scope work duties and resignation

Why did the Apollo 13 crew extend the LM landing gear?

Is it normal for gliders not to have attitude indicators?

How to pass hash as password to ssh server

What was Bran's plan to kill the Night King?

As a GM, is it bad form to ask for a moment to think when improvising?

History of the kernel of a homomorphism?

Feasibility of lava beings?

Why do these characters still seem to be the same age after the events of Endgame?

Should I simplify my writing in a foreign country?



How to run a script during power on and power off of the server?


How do I power down on reboot?How to continue a script after it reboots the machine?Running a script on power off needing wireless networkGo through every subfolder, check for a folder and run scriptHow to force script execution before shutdown or reboot is executed? RHEL 7How can I change the login menu from debian and run my own script? (run script before log in)Run a script just before poweroff of rebootHow make each script run to expect different inner variable value?Storing values from loop and comparing them every time run the scriptRun interactive script before reboot






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







0
















  1. I have prepared a health check script and wanted that to run before and after reboot to compare the values.


  2. I am looking for logic to keep inside the health check script



Any help?










share|improve this question























  • The title doesn't match even the first question. The second question is unclear what you're asking. It seems can be achieved by running the same check logic and store it in a file every time the service start or stop.

    – 炸鱼薯条德里克
    56 mins ago











  • I re read the title and I am convinced. Any recommendations on what to change to?

    – Vajra
    14 mins ago


















0
















  1. I have prepared a health check script and wanted that to run before and after reboot to compare the values.


  2. I am looking for logic to keep inside the health check script



Any help?










share|improve this question























  • The title doesn't match even the first question. The second question is unclear what you're asking. It seems can be achieved by running the same check logic and store it in a file every time the service start or stop.

    – 炸鱼薯条德里克
    56 mins ago











  • I re read the title and I am convinced. Any recommendations on what to change to?

    – Vajra
    14 mins ago














0












0








0









  1. I have prepared a health check script and wanted that to run before and after reboot to compare the values.


  2. I am looking for logic to keep inside the health check script



Any help?










share|improve this question















  1. I have prepared a health check script and wanted that to run before and after reboot to compare the values.


  2. I am looking for logic to keep inside the health check script



Any help?







linux bash reboot






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 1 hour ago









VajraVajra

104




104













  • The title doesn't match even the first question. The second question is unclear what you're asking. It seems can be achieved by running the same check logic and store it in a file every time the service start or stop.

    – 炸鱼薯条德里克
    56 mins ago











  • I re read the title and I am convinced. Any recommendations on what to change to?

    – Vajra
    14 mins ago



















  • The title doesn't match even the first question. The second question is unclear what you're asking. It seems can be achieved by running the same check logic and store it in a file every time the service start or stop.

    – 炸鱼薯条德里克
    56 mins ago











  • I re read the title and I am convinced. Any recommendations on what to change to?

    – Vajra
    14 mins ago

















The title doesn't match even the first question. The second question is unclear what you're asking. It seems can be achieved by running the same check logic and store it in a file every time the service start or stop.

– 炸鱼薯条德里克
56 mins ago





The title doesn't match even the first question. The second question is unclear what you're asking. It seems can be achieved by running the same check logic and store it in a file every time the service start or stop.

– 炸鱼薯条德里克
56 mins ago













I re read the title and I am convinced. Any recommendations on what to change to?

– Vajra
14 mins ago





I re read the title and I am convinced. Any recommendations on what to change to?

– Vajra
14 mins ago










0






active

oldest

votes












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',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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/3.0/"u003ecc by-sa 3.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%2funix.stackexchange.com%2fquestions%2f517046%2fhow-to-run-a-script-during-power-on-and-power-off-of-the-server%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Unix & Linux Stack Exchange!


  • 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%2funix.stackexchange.com%2fquestions%2f517046%2fhow-to-run-a-script-during-power-on-and-power-off-of-the-server%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

Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

Nicolae Petrescu-Găină Cuprins Biografie | Opera | In memoriam | Varia | Controverse, incertitudini...