- add an rc script
rc.d-cluestick from aja@
This commit is contained in:
parent
a98060527c
commit
d050660782
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2010/12/22 18:38:03 jasper Exp $
|
||||
# $OpenBSD: Makefile,v 1.2 2010/12/29 09:45:50 jasper Exp $
|
||||
|
||||
COMMENT-main= high performance webserver written in Erlang, libraries
|
||||
COMMENT-web= high performance webserver written in Erlang, docroot
|
||||
@ -6,6 +6,7 @@ COMMENT-web= high performance webserver written in Erlang, docroot
|
||||
VERSION= 1.89
|
||||
DISTNAME= yaws-${VERSION}
|
||||
PKGNAME-main= yaws-${VERSION}
|
||||
REVISION-main= 0
|
||||
PKGNAME-web= yaws-web-${VERSION}
|
||||
CATEGORIES= www
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
@comment $OpenBSD: PLIST-main,v 1.1.1.1 2010/12/22 18:38:03 jasper Exp $
|
||||
@comment $OpenBSD: PLIST-main,v 1.2 2010/12/29 09:45:50 jasper Exp $
|
||||
%%SHARED%%
|
||||
bin/yaws
|
||||
lib/pkgconfig/
|
||||
@ -76,3 +76,4 @@ share/examples/yaws/yaws-key.pem
|
||||
share/examples/yaws/yaws.conf
|
||||
@sample ${SYSCONFDIR}/yaws/yaws.conf
|
||||
@sample /var/log/yaws/
|
||||
@rcscript ${RCDIR}/yaws
|
||||
|
20
www/yaws/pkg/yaws.rc
Normal file
20
www/yaws/pkg/yaws.rc
Normal file
@ -0,0 +1,20 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $OpenBSD: yaws.rc,v 1.1 2010/12/29 09:45:50 jasper Exp $
|
||||
|
||||
daemon="${TRUEPREFIX}/bin/yaws"
|
||||
daemon_flags="--daemon --conf ${SYSCONFDIR}/yaws/yaws.conf"
|
||||
|
||||
. /etc/rc.d/rc.subr
|
||||
|
||||
pexp="${LOCALBASE}/lib/erlang/erts.*${TRUEPREFIX}/lib/yaws/ebin -run yaws"
|
||||
|
||||
rc_stop(){
|
||||
${daemon} --stop
|
||||
}
|
||||
|
||||
rc_reload(){
|
||||
${daemon} --hup
|
||||
}
|
||||
|
||||
rc_cmd $1
|
Loading…
Reference in New Issue
Block a user