Subversion Repositories SmartDukaan

Rev

Rev 4700 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4700 Rev 4713
Line 46... Line 46...
46
{
46
{
47
	# Return
47
	# Return
48
	#   0 if daemon has been started
48
	#   0 if daemon has been started
49
	#   1 if daemon was already running
49
	#   1 if daemon was already running
50
	#   2 if daemon could not be started
50
	#   2 if daemon could not be started
51
        $DAEMON -u ${PROJECT_DIR}/shop2020/config/ConfigServer.py -f ${PROJECT_DIR}/PyProj/src/shop2020/config/resources/shop2020.cfg -l /var/log/services/config.log -i $PIDFILE start 
51
        $DAEMON -u ${PROJECT_DIR}/shop2020/config/ConfigServer.py -f ${PROJECT_DIR}/shop2020/config/resources/shop2020.cfg -l /var/log/services/config.log -i $PIDFILE start 
52
	# Add code here, if necessary, that waits for the process to be ready
52
	# Add code here, if necessary, that waits for the process to be ready
53
	# to handle requests from services started subsequently which depend
53
	# to handle requests from services started subsequently which depend
54
	# on this one.  As a last resort, sleep for some time.
54
	# on this one.  As a last resort, sleep for some time.
55
}
55
}
56
 
56
 
Line 62... Line 62...
62
	# Return
62
	# Return
63
	#   0 if daemon has been stopped
63
	#   0 if daemon has been stopped
64
	#   1 if daemon was already stopped
64
	#   1 if daemon was already stopped
65
	#   2 if daemon could not be stopped
65
	#   2 if daemon could not be stopped
66
	#   other if a failure occurred
66
	#   other if a failure occurred
67
        $DAEMON -u ${PROJECT_DIR}/shop2020/config/ConfigServer.py -f ${PROJECT_DIR}/PyProj/src/shop2020/config/resources/shop2020.cfg -l /var/log/services/config.log -i $PIDFILE stop 
67
        $DAEMON -u ${PROJECT_DIR}/shop2020/config/ConfigServer.py -f ${PROJECT_DIR}/shop2020/config/resources/shop2020.cfg -l /var/log/services/config.log -i $PIDFILE stop 
68
	RETVAL="$?"
68
	RETVAL="$?"
69
	[ "$RETVAL" = 1 ] && return 2
69
	[ "$RETVAL" = 1 ] && return 2
70
	# Wait for children to finish too if this is a daemon that forks
70
	# Wait for children to finish too if this is a daemon that forks
71
	# and if the daemon is only ever run from this initscript.
71
	# and if the daemon is only ever run from this initscript.
72
	# If the above conditions are not satisfied then add some other code
72
	# If the above conditions are not satisfied then add some other code