[Mapguide-trac] [mapguide-trac] #2527: mapguide init script use log_daemon_msg and log_end_msg which are not defined in Centos 6

MapGuide Open Source trac_mapguide at osgeo.org
Wed Feb 11 06:48:40 PST 2015


#2527: mapguide init script use log_daemon_msg and log_end_msg which are not
defined in Centos 6
--------------------------+-------------------------------------------------
   Reporter:  gabrimonfa  |       Owner:     
       Type:  defect      |      Status:  new
   Priority:  low         |   Milestone:     
  Component:  General     |     Version:     
   Severity:  trivial     |    Keywords:     
External_id:              |  
--------------------------+-------------------------------------------------

Comment(by gabrimonfa):

 I'm not really an expert on the topic.

 "log_daemon_msg" may be replaced with a simple "echo -n" (as in other init
 scripts).

 "log_end_message" gives different results in debian/ubuntu whether the
 argument is 0 or greater than 0 and usually is used with the exit code of
 a previous command.
 If called with 0 it shows a success message, otherwise a failure message.

 However in our script it is always called with 0 as argument, so it may be
 replaced by "log_success_msg" which is supported on both ubuntu and
 centos.

-- 
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/2527#comment:2>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals


More information about the mapguide-trac mailing list