FreeBSD Bugzilla – Attachment 105894 Details for
Bug 146442
Updates for the net/freeswitch rc.d script
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.78 KB, created by
Doug Barton
on 2010-05-09 22:50:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Doug Barton
Created:
2010-05-09 22:50:01 UTC
Size:
1.78 KB
patch
obsolete
>Index: freeswitch.in >=================================================================== >RCS file: /home/pcvs/ports/net/freeswitch/files/freeswitch.in,v >retrieving revision 1.2 >diff -u -r1.2 freeswitch.in >--- freeswitch.in 27 Mar 2010 00:13:42 -0000 1.2 >+++ freeswitch.in 9 May 2010 21:35:40 -0000 >@@ -1,8 +1,10 @@ > #!/bin/sh > >+# $FreeBSD$ >+# > # PROVIDE: freeswitch > # REQUIRE: DAEMON >-# KEYWORD: FreeBSD >+# KEYWORD: shutdown > > . /etc/rc.subr > >@@ -12,39 +14,35 @@ > command=%%PREFIX%%/freeswitch/bin/freeswitch > command_args="-nc" > >-pidfile=${freeswitch_pidfile:-"%%PREFIX%%/freeswitch/log/freeswitch.pid"} >- >-freeswitch_enable=${freeswitch_enable-"YES"} >- > start_cmd="freeswitch_start" > stop_precmd="freeswitch_stop" > restart_cmd="freeswitch_restart" > >-sig_stop=KILL >- >-load_rc_config $name >+sig_stop=KILL > > freeswitch_stop () { > echo "Stopping Freeswitch." > %%PREFIX%%/freeswitch/bin/freeswitch -stop > sleep 1 >- return 0 > } > >-freeswitch_start () { >- echo "Starting FreeSwitch." >- /usr/sbin/daemon -f /bin/sh -c "$command" >+freeswitch_start () { >+ echo "Starting FreeSwitch." >+ /usr/sbin/daemon -f /bin/sh -c "$command" # $command_args? > sleep 1 >- return > } > >+# Probably not necessary? > freeswitch_restart () { >- echo "ReStarting FreeSwitch." >- freeswitch_stop >+ echo "Restarting FreeSwitch." >+ freeswitch_stop > freeswitch_start > sleep 1 >- return >-} >+} > >-run_rc_command "$1" >+load_rc_config $name > >+: ${freeswitch_enable="YES"} >+pidfile="${freeswitch_pidfile:-"%%PREFIX%%/freeswitch/log/freeswitch.pid"}" >+ >+run_rc_command "$1"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 146442
: 105894