Bug 3478 - Sorcery must not stop/start init.d services automatically
: Sorcery must not stop/start init.d services automatically
Status: CLOSED FIXED
Product: Sorcery
Classification: Unclassified
Component: Feature Request
: really old
: All All
: P2 enhancement
Assigned To: Sergey Lipnevich
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2003-06-01 11:27 UTC by Sergey Lipnevich
Modified: 2005-02-04 18:50 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Lipnevich 2003-06-01 11:27:09 UTC
My suggestion in an SM-Discuss e-mail of Sat, 31 May 2003, was supported:

BTW, another side of this is not attempting to start/stop a service on
recast. Sorcery shouldn't do this IMO.

I'm assigning this to myself. What needs to be done is:
a) Code to start/stop/restart a service removed
b) Sorcery must somehow notify the administrator that a restart is needed
c) The spells that have a "good to start" function (like `httpd -t') must
declare and use it in a standard way (maybe through an init.d script or a
separate file)
Comment 1 erics 2003-06-02 12:57:59 UTC
I think that the start and stop is often done in the spells themselves.... 
PRE_REMOVE for example.... I don't think this is in the sorcery code itself? 
 
Eric 
Comment 2 erics 2003-12-03 03:54:15 UTC
Moved to Feature Request as part of cleanup... 
 
erics 
Comment 3 Jason Flatt 2004-01-06 11:58:43 UTC
Hasn't this been done (with the possible exception of some spells which may be 
circumventing the Sorcery builtin init.d process)? 
 
Comment 4 erics 2004-01-06 12:51:58 UTC
the only start and stopping in sorcery itself that I am aware of is the xinetd
init scripts for spells... I have now coded it to ask if it should restart the
xinetd deamon, up to the user. It happens before the spell builds as that is
when the scripts are installed.

erics
Comment 5 erics 2004-02-23 04:39:31 UTC
The only starting and stopping is the xinetd and this has been taken care of...
the xinetd is only restarted if any scripts are installed or removed, which is
required.

Please verify sergey, and we can close this...

erics