FreeBSD Bugzilla – Attachment 191827 Details for
Bug 226937
databases/go-carbon: Improve rc.d script.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Improvements to rc.d script
go-carbon.diff (text/plain), 1.78 KB, created by
Andreas Andersson
on 2018-03-26 08:47:28 UTC
(
hide
)
Description:
Improvements to rc.d script
Filename:
MIME Type:
Creator:
Andreas Andersson
Created:
2018-03-26 08:47:28 UTC
Size:
1.78 KB
patch
obsolete
>Index: databases/go-carbon/Makefile >=================================================================== >--- databases/go-carbon/Makefile (revision 465562) >+++ databases/go-carbon/Makefile (working copy) >@@ -3,7 +3,7 @@ > PORTNAME= go-carbon > DISTVERSIONPREFIX= v > DISTVERSION= 0.12.0 >-PORTREVISION= 1 >+PORTREVISION= 2 > CATEGORIES= databases > > MAINTAINER= a.andersson.thn@gmail.com >Index: databases/go-carbon/files/go-carbon.in >=================================================================== >--- databases/go-carbon/files/go-carbon.in (revision 465562) >+++ databases/go-carbon/files/go-carbon.in (working copy) >@@ -21,35 +21,39 @@ > > . /etc/rc.subr > >-name="go-carbon" >+name="go_carbon" > rcvar="go_carbon_enable" >+load_rc_config $name > > : ${go_carbon_enable:="NO"} > : ${go_carbon_user:="carbon"} > : ${go_carbon_config:="/usr/local/etc/go-carbon/go-carbon.conf"} > >-start_cmd="go_carbon_start" >-stop_cmd="go_carbon_stop" >-status_cmd="go_carbon_status" >-procname="/usr/local/bin/go-carbon" > pidfile="/var/run/$name.pid" >+procname="%%PREFIX%%/bin/go-carbon" >+command=/usr/sbin/daemon >+command_args="-f -c -p ${pidfile} ${procname} -config ${go_carbon_config}" > >+extra_commands="reload" >+reload_command="go_carbon_reload" >+start_precmd="go_carbon_precmd" >+ > # read configuration and set defaults > load_rc_config "$name" > >-go_carbon_start() >+go_carbon_precmd() > { >- ${procname} -config ${go_carbon_config} -daemon -pidfile ${pidfile} >+ install -o ${go_carbon_user} /dev/null ${pidfile} > } > >-go_carbon_stop() >+carbonapi_reload() > { >- kill -TERM `cat /var/run/go-carbon.pid` >+ if [ -n "$pid" ]; then >+ kill -HUP $pid >+ echo "go-carbon config reloaded." >+ else >+ echo "go-carbon not running." >+ fi > } > >-go_carbon_status() >-{ >- echo "go-carbon is running as pid" `cat /var/run/go-carbon.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
Flags:
a.andersson.thn
:
maintainer-approval+
Actions:
View
|
Diff
Attachments on
bug 226937
: 191827