Bug 146442 - Updates for the net/freeswitch rc.d script
Summary: Updates for the net/freeswitch rc.d script
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Doug Barton
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-09 22:50 UTC by Doug Barton
Modified: 2010-08-11 06:30 UTC (History)
1 user (show)

See Also:


Attachments
file.diff (1.78 KB, patch)
2010-05-09 22:50 UTC, Doug Barton
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Doug Barton freebsd_committer freebsd_triage 2010-05-09 22:50:01 UTC
	Updates for the net/freeswitch rc.d script

Fix: Apply the following patch, then test 6 and 7 above.
How-To-Repeat: 	There are numerous problems with this script, some more serious
	than others. The issue that brought it to my attention is the
	"KEYWORD: FreeBSD" that needs to be removed as that has not been
	necessary for years now, and I don't want the example perpetuated.

	Please see http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/rc-scripts.html for more information.

	Other changes:
	1. Add a $FreeBSD$ CVS Id
	2. Add KEYWORD: shutdown since this script seems to start a
	   persistent service which should be shut down cleanly when
	   the system is shut down.
	3. Move the default value assignments down after load_rc_config.
	   This is particularly important for _pidfile which would not
	   have actually picked up the value from rc.conf.
	4. Remove the return statements from the ends of the functions,
	   since that's what will happen anyway.
	5. Remove a bunch of trailing whitespace
	These two need testing:
	6. The _restart method is probably not needed, since it is a
	   duplicate of the same procedure from rc.subr.
	7. In the _start method $command_args doesn't seem to be taken
	   into account because the script is not using the method from
	   rc.subr.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2010-05-09 22:50:13 UTC
Responsible Changed
From-To: freebsd-ports-bugs->dougb

Submitter has GNATS access (via the GNATS Auto Assign Tool)
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2010-05-09 22:50:15 UTC
Maintainer of net/freeswitch,

Please note that PR ports/146442 has just been submitted.

If it contains a patch for an upgrade, an enhancement or a bug fix
you agree on, reply to this email stating that you approve the patch
and a committer will take care of it.

The full text of the PR can be found at:
    http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/146442

-- 
Edwin Groothuis via the GNATS Auto Assign Tool
edwin@FreeBSD.org
Comment 3 Edwin Groothuis freebsd_committer freebsd_triage 2010-05-09 22:50:18 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 4 Doug Barton freebsd_committer freebsd_triage 2010-05-24 04:05:48 UTC
State Changed
From-To: feedback->open


Past maintainer timeout 


Comment 5 Doug Barton freebsd_committer freebsd_triage 2010-05-24 04:05:48 UTC
Responsible Changed
From-To: dougb->jpaetzel


Other freeswitch PRs are assigned to you, so I'm assuming you 
have an interest.
Comment 6 dfilter service freebsd_committer freebsd_triage 2010-08-11 06:22:25 UTC
dougb       2010-08-11 05:22:11 UTC

  FreeBSD ports repository

  Modified files:
    net/freeswitch-core  Makefile 
    net/freeswitch-core/files freeswitch.in 
  Log:
  1. It's generally preferred that ports rc.d files use REQUIRE: LOGIN
  unless there is a good reason not to. However this service runs as an
  unprivileged user, which makes that a requirement.
  2. The default variable assignments have to come after load_rc_config to
  be effective.
  3. _flags should not be reproduced in command_args
  4. The start and restart methods were superfluous, instead use
  wait_for_pids in the _stop method.
  
  Bump PORTREVISION
  
  PR:             ports/146442
  Submitted by:   me
  Approved by:    maintainer
  
  Revision  Changes    Path
  1.9       +1 -1      ports/net/freeswitch-core/Makefile
  1.4       +10 -38    ports/net/freeswitch-core/files/freeswitch.in
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 7 Doug Barton freebsd_committer freebsd_triage 2010-08-11 06:22:45 UTC
State Changed
From-To: open->closed


A better version based on the latest version of the port was committed 
as CVS version 1.4. 


Comment 8 Doug Barton freebsd_committer freebsd_triage 2010-08-11 06:22:45 UTC
Responsible Changed
From-To: jpaetzel->dougb


My problem, my resolution. :)