Add a sample rc file for svscan startup, in partial fulfillment of the
PR. I'll leave the creation of the directory, whatever it may be, to the user. PR: ports/19191 Submitted by: Mario Sergio Fujikawa Ferreira <lioux@linf.unb.br>
This commit is contained in:
parent
57d0aa6054
commit
38d0ebaebf
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=29767
2 changed files with 47 additions and 0 deletions
|
@ -17,9 +17,22 @@ NO_PACKAGE= Unsure of djb\'s license
|
|||
ALL_TARGET= it
|
||||
INSTALL_TARGET= setup check
|
||||
|
||||
SAMPLERC= svscan.sh.sample
|
||||
SERVICEDIR?= /var/service/
|
||||
|
||||
post-patch:
|
||||
@echo "${CC} ${CFLAGS}" > ${WRKSRC}/conf-cc
|
||||
@echo "${CC} -s" > ${WRKSRC}/conf-ld
|
||||
@echo "${PREFIX}" > ${WRKSRC}/conf-home
|
||||
|
||||
post-build:
|
||||
@${SED} "s!/usr/local/!${PREFIX}/!;s!/var/service!${SERVICEDIR}!g" \
|
||||
${FILESDIR}/${SAMPLERC} > ${WRKDIR}/${SAMPLERC}
|
||||
|
||||
post-install:
|
||||
@${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} -m 755 \
|
||||
${PREFIX}/share/examples/${PORTNAME}
|
||||
@${INSTALL_DATA} ${WRKDIR}/${SAMPLERC} \
|
||||
${PREFIX}/share/examples/${PORTNAME}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
34
sysutils/daemontools/files/svscan.sh.sample
Normal file
34
sysutils/daemontools/files/svscan.sh.sample
Normal file
|
@ -0,0 +1,34 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Surely advice you to enable some of the below
|
||||
# control variables and the apropriate ulimit.
|
||||
# These are only examples.
|
||||
# Furthermore, you should think about additional
|
||||
# limits you might need.
|
||||
# Or, check login.conf(5) for a suitable
|
||||
# alternative
|
||||
#
|
||||
# I really do suggest you use /var/service as your
|
||||
# service spool directory. Check hier(7) for
|
||||
# reasons.
|
||||
|
||||
# 10 Mb
|
||||
#MINSEGMENT=10240
|
||||
# 20 Mb
|
||||
#MAXSEGMENT=20480
|
||||
# 10 Mb
|
||||
#MAXFILESIZE=10240
|
||||
# 100
|
||||
#MAXFD=100
|
||||
# 40
|
||||
#MAXCHILD=40
|
||||
|
||||
# ulimits
|
||||
#ulimit -d ${MINSEGMENT}
|
||||
#ulimit -f ${MAXFILESIZE}
|
||||
#ulimit -m ${MAXSEGMENT}
|
||||
#ulimit -n ${MAXFD}
|
||||
#ulimit -s ${MINSEGMENT}
|
||||
#ulimit -u ${MAXCHILD}
|
||||
|
||||
exec /bin/csh -cf '/usr/local/bin/svscan /var/service &'
|
Loading…
Reference in a new issue