diff options
author | Alexander Kabaev <kan@FreeBSD.org> | 2005-03-01 22:15:34 +0000 |
---|---|---|
committer | Alexander Kabaev <kan@FreeBSD.org> | 2005-03-01 22:15:34 +0000 |
commit | 84e12198e264b16f0f1dd9ad1a4ad0a18fb02a0c (patch) | |
tree | a4b5f8983c4dc9a0d01c4699c29ef8aa517c3cc7 /www/aolserver/files | |
parent | de8f2d810c9b171830e8aae635e0be1537e643a6 (diff) |
Notes
Diffstat (limited to 'www/aolserver/files')
-rw-r--r-- | www/aolserver/files/aolserver.sh | 44 | ||||
-rw-r--r-- | www/aolserver/files/pkg-message.in | 9 |
2 files changed, 38 insertions, 15 deletions
diff --git a/www/aolserver/files/aolserver.sh b/www/aolserver/files/aolserver.sh index 2f9a840bb11d..834d58fff005 100644 --- a/www/aolserver/files/aolserver.sh +++ b/www/aolserver/files/aolserver.sh @@ -1,21 +1,35 @@ -#!/bin/sh +#! /bin/sh +# +# +# PROVIDE: aolserver +# REQUIRE: DAEMON NETWORKING SERVERS +# KEYWORD: FreeBSD +# +# Add the following line to /etc/rc.conf to enable aolserver: +# +# aolserver_enable="YES" +# +# Tweakable parameters for users to override in rc.conf -PREFIX=%%PREFIX%%/aolserver -CONFIG=${PREFIX}/nsd.tcl +aolserver_enable=NO +aolserver_home=%%PREFIX%%/aolserver +aolserver_conf=${aolserver_home}/nsd.tcl +aolserver_flags="-t ${aolserver_conf} -u nobody -g nobody" +aolserver_prog=nsd8x -case "$1" in +. /etc/rc.subr -start) - ${PREFIX}/bin/nsd8x -t ${CONFIG} -u nobody -g nobody - ;; +name=aolserver +rcvar=$(set_rcvar) +required_files=${aolserver_conf} +command=${aolserver_home}/bin/${aolserver_prog} +procname=${aolserver_home}/bin/${aolserver_prog} -stop) - ${PREFIX}/bin/nsd8x -t ${CONFIG} -u nobody -g nobody -K - ;; +stop_cmd="stop_cmd" -*) - echo "usage: $0 {start|stop}" 1>&2 - exit 64 - ;; +stop_cmd() { + ${command} ${aolserver_flags} -K +} -esac +load_rc_config ${name} +run_rc_command "$1" diff --git a/www/aolserver/files/pkg-message.in b/www/aolserver/files/pkg-message.in new file mode 100644 index 000000000000..0343be321bea --- /dev/null +++ b/www/aolserver/files/pkg-message.in @@ -0,0 +1,9 @@ + +Assuming you have changed to %%PREFIX%%, please copy +aolserver/sample-config.tcl to aolserver/nsd.tcl and season to taste. +An example server is in at aolserver/servers/server1, and you should +similarly copy the contents of this directory to, e.g., +aolserver/servers/www.mydomain.com before modifying them. + +These files are examples only and will be deleted if you remove this +port. |