Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 20892  / 2 Years ago, thu, october 27, 2022, 1:54:42

How can I run a command before the machine automatically shuts down?


More From » shutdown

 Answers
3

How about to put a script in the correct runlevel?
I think runlevel 6 is shutdown, and then the directory to play in is



/etc/rc6.d/

[#44398] Friday, October 28, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
suitman

Total Points: 487
Total Questions: 105
Total Answers: 98

Location: India
Member since Wed, Aug 4, 2021
3 Years ago
;