From 96d6aeb59d21bdf2ebab43e0006032747a57203b Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Sat, 31 Oct 2009 19:52:56 +0000 Subject: [PATCH] - Add the abulity to override most of the variables in the init-script. Signed-off-by: Peter Lemenkov git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1603 8eb893ce-cfd4-0310-b710-fb5ebe64c474 --- pkg/rpm/sems.init | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkg/rpm/sems.init b/pkg/rpm/sems.init index d22192d9..2efb2ac4 100755 --- a/pkg/rpm/sems.init +++ b/pkg/rpm/sems.init @@ -18,7 +18,6 @@ # Description: SEMS is a media and application server for SIP based VoIP services. ### END INIT INFO - # Source function library. . /etc/rc.d/init.d/functions @@ -30,6 +29,11 @@ lockfile=/var/lock/subsys/$prog conffile=/etc/$prog/$prog.conf OPTIONS="" + +# User-defined options and/or overrides of the variables, listed above, +# should go there: +[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog + RETVAL=0 start() {