Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 810  / 3 Years ago, fri, october 15, 2021, 3:54:28

If using the manual keyword in an init or override Upstart script, it is not clear whether the services shut down process will be initiated or it will just be killed on shut down.



For instance, will MySQLs default timeout be extended (giving it enough time to flush buffers, as specified in the init script) when the manual override is used? If not, would it be preferable to use a start on never setting, or do manually started services need to also be manually shut down?



The Upstart Cookbook has little to say on the matter.


More From » startup

 Answers
6

I think you must have overlooked something as this is really clear in the link you provided:




5.2.1 Observations



There are some important points related to system shutdown:



[...]




  • Upstart never stops a job with no stop on condition.



[...]



5.2.2 Shutdown Process



[...]



One of the scripts run is /etc/init.d/sendsigs.



This script will kill any remaining processes not already stopped (including Upstart processes).




In this sendsigs script it's explained:




Upstart has a method to set a kill timeout and so the job author may
want us to wait longer than 10 seconds (as in the case of mysql).
(LP: #688541)



We will wait up to 300 seconds for any jobs in stop/killed state. Any
kill timeout higher than that will be overridden by the need to
shutdown. NOTE the re-use of seq from above, since we already waited
up to 10 seconds for them.



[#33105] Friday, October 15, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
onomicsiberated

Total Points: 217
Total Questions: 98
Total Answers: 107

Location: Luxembourg
Member since Sun, May 28, 2023
1 Year ago
;