Summary: | local_stop not executed | ||
---|---|---|---|
Product: | Gentoo Hosted Projects | Reporter: | Norman Shulman <norman.shulman> |
Component: | OpenRC | Assignee: | OpenRC Team <openrc> |
Status: | RESOLVED INVALID | ||
Severity: | normal | Keywords: | PATCH |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Norman Shulman
2013-05-28 15:27:33 UTC
local_stop is not meant to be executed. Please see /etc/local.d/README for instructions on how to set up things you want the local service to start or stop. Seems that as a migration aid, the intent is if local_stop exists, print a warning and execute it (as is done for local_start). Otherwise the if-statement is useless. As it is (apparently because of a typo), if local_start exists, stop() will attempt to execute local_stop (which might not even exist). (In reply to Norman Shulman from comment #2) > Seems that as a migration aid, the intent is if local_stop exists, print a > warning and execute it (as is done for local_start). Otherwise the > if-statement is useless. > > As it is (apparently because of a typo), if local_start exists, stop() will > attempt to execute local_stop (which might not even exist). It is true that there is a typo in stop(), but if you have followed the instructions from the message in start(), local_stop will not exist because you have migrated everything to scripts in /etc/local.d and removed /etc/conf.d/local which is where local_stop was defined. So I'm just wondering if we should still fix it. (In reply to William Hubbs from comment #3) > (In reply to Norman Shulman from comment #2) > > Seems that as a migration aid, the intent is if local_stop exists, print a > > warning and execute it (as is done for local_start). Otherwise the > > if-statement is useless. > > > > As it is (apparently because of a typo), if local_start exists, stop() will > > attempt to execute local_stop (which might not even exist). > > It is true that there is a typo in stop(), but if you have followed the > instructions from the message in start(), local_stop will not exist because > you have migrated everything to scripts in /etc/local.d and removed > /etc/conf.d/local which is where local_stop was defined. Right, but until people migrate, this ensures that their systems don't break. > So I'm just wondering if we should still fix it. I would say yes; it's a simple one-line (one-word) fix which avoids breakage while encouraging migration. |