ports/147921: add reload command to rc script of audio/icecast2

Ralf Gebhart gebhart at secnetix.de
Wed Jun 16 20:00:14 UTC 2010


>Number:         147921
>Category:       ports
>Synopsis:       add reload command to rc script of audio/icecast2
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jun 16 20:00:13 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Ralf Gebhart
>Release:        Any using rcorder
>Organization:
secnetix GmbH & Co KG
>Environment:
>Description:
audio/icecast2 offers a config reload by sending it a SIGHUP like most daemons do.
However the rc script doesn't have the reload command.

>How-To-Repeat:
Install port audio/icecast2 and run the rc script:

/usr/local/etc/rc.d/icecast2
Usage: /usr/local/etc/rc.d/icecast2 [fast|force|one](start|stop|restart|rcvar|status|poll)

No reload there.

>Fix:
If I understand the rcng stuff right, it should be enough to just
add the extra command reload, everything else is covered by defaults.

This simple patch should do the job:

*** files/icecast2.sh.in.old    Wed Jun 16 21:46:08 2010
--- files/icecast2.sh.in        Wed Jun 16 21:46:48 2010
***************
*** 37,40 ****
--- 37,42 ----
  
  required_files="${icecast_config}"
  
+ extra_commands="reload"
+ 
  run_rc_command "$1"


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list