Bugs item #1544112, was opened at 2006-08-21 18:13 Message generated for change (Comment added) made by henningw You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1544112&group_id=139143
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: tools Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Samwise (samwiseuk) Assigned to: Daniel-Constantin Mierla (miconda) Summary: Solaris openser.init script error Initial Comment: Line 57 in /usr/local/src/openser-1.1.0-tls/sip-server/etc/openser.init: killproc $BINNAME does not work on Solaris 9/04 as there is no Source function library, as specified on line 11: . /etc/rc.d/init.d/functions As a workaround, I have used: pkill $BINNAME & However, this call does not automatically remove the $PIDFILE from it's temporary directory. You can add: rm $PIDFILE immediately after but this, of course, does not test to see whether the pkill actually worked (and, hence, whether the PID file should be removed). I'm not sure how to rewrite the script so that it only removes the PID file if the pkill command was unsuccessful. This was discovered with the rel_1_1_0 branch checked out from CVS. ---------------------------------------------------------------------- >Comment By: Henning Westerholt (henningw) Date: 2007-09-27 08:27 Message: Logged In: YES user_id=337916 Originator: NO So has somebody a init script for solaris available that could be added? Otherwise this bug should be closed. Cheers, Henning ---------------------------------------------------------------------- Comment By: Samwise (samwiseuk) Date: 2006-08-23 09:07 Message: Logged In: YES user_id=1068470 Just replace line 57 with: pkill $BINNAME & I've personally added rm $PIDFILE after it as well, to remove the PID file but, as I said, this removes it whether the process was successfully killed or not - ideally it should only done if the pkill command was successful, but I don't know how to write that in Solaris' sh. ---------------------------------------------------------------------- Comment By: Daniel-Constantin Mierla (miconda) Date: 2006-08-23 08:36 Message: Logged In: YES user_id=1246013 The etc/openser.init is a generic start/stop script for OpenSER. For OS specific versions packaging/__os_type__ is more appropriate. However, for solaris is none, if you send me the version that works for Solaris, I will add it there. ---------------------------------------------------------------------- Comment By: Samwise (samwiseuk) Date: 2006-08-22 10:39 Message: Logged In: YES user_id=1068470 Oops. That last line should read "if the pkill command was successful". ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1544112&group_id=139143 _______________________________________________ Devel mailing list Devel@openser.org http://openser.org/cgi-bin/mailman/listinfo/devel