FreeBSD Bugzilla – Attachment 196966 Details for
Bug 230740
net-mgmt/statsite: Add RC script
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
ADD RC
statsite (text/plain), 1.96 KB, created by
Nathan
on 2018-09-08 17:03:53 UTC
(
hide
)
Description:
ADD RC
Filename:
MIME Type:
Creator:
Nathan
Created:
2018-09-08 17:03:53 UTC
Size:
1.96 KB
patch
obsolete
>Index: net-mgmt/statsite/Makefile >=================================================================== >--- net-mgmt/statsite/Makefile (revision 479178) >+++ net-mgmt/statsite/Makefile (working copy) >@@ -11,7 +11,7 @@ > LICENSE= BSD3CLAUSE > LICENSE_FILE= ${WRKSRC}/LICENSE > >-USES= autoreconf >+USES= autoreconf python:run > GNU_CONFIGURE= yes > USE_GITHUB= yes > GH_ACCOUNT= armon >@@ -20,6 +20,7 @@ > > USERS= statsd > GROUPS= statsd >+USE_RC_SUBR= ${PORTNAME} > > OPTIONS_DEFINE= DOCS > >@@ -26,6 +27,10 @@ > PORTDOCS= README.md > > post-install: >+ ${REINPLACE_CMD} -e 's,python,${PYTHON_CMD}, ; \ >+ s,/usr/libexec,/usr/local/share, ; \ >+ /daemonize/d ; /pid_file/d ' \ >+ ${WRKSRC}/rpm/statsite.conf.example > ${INSTALL_DATA} ${WRKSRC}/rpm/statsite.conf.example \ > ${STAGEDIR}${PREFIX}/etc/statsite.conf.sample > >Index: net-mgmt/statsite/files/statsite.in >=================================================================== >--- net-mgmt/statsite/files/statsite.in (nonexistent) >+++ net-mgmt/statsite/files/statsite.in (working copy) >@@ -0,0 +1,32 @@ >+#!/bin/sh >+ >+# $FreeBSD$ >+# >+# PROVIDE: statsite >+# REQUIRE: LOGIN >+# KEYWORD: shutdown >+# >+# Add these lines to /etc/rc.conf.local or /etc/rc.conf >+# to enable this service: >+# >+# statsite_enable (bool): Set to NO by default. >+# Set it to YES to enable statsite. >+# statsite_config (path): Set to %%PREFIX%%/etc/statsite.conf >+# by default. >+ >+. /etc/rc.subr >+ >+name=statsite >+rcvar=statsite_enable >+ >+load_rc_config $name >+ >+: ${statsite_enable:="NO"} >+: ${statsite_config="%%PREFIX%%/etc/statsite.conf"} >+ >+pidfile=/var/run/${name}.pid >+command="/usr/sbin/daemon" >+ >+command_args="-u statsd -P ${pidfile} /usr/local/bin/statsite -f ${statsite_config}" >+ >+run_rc_command "$1" > >Property changes on: net-mgmt/statsite/files/statsite.in >___________________________________________________________________ >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
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 230740
:
196333
|
196779
|
196854
|
196857
|
196861
|
196862
|
196966
|
196967