Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

52 lines (38 sloc) 0.79 kb
#!/sbin/runscript
#
# Startup script for the Yaws Web Server (for Gentoo Linux)
#
# config: /etc/conf.d/yaws
#
# description: yaws - Erlang enabled http server
#
# use: rc-update add yaws default
#
yaws=%prefix%/bin/yaws
# By default we run with the default id
# idopts="--id myserverid"
conf="--conf %etcdir%yaws/yaws.conf"
opts="start stop reload restart query"
depend() {
need net
}
start() {
ebegin "Starting yaws "
${yaws} --daemon --heart ${idopts} ${conf}
eend $?
}
stop() {
ebegin "Stopping yaws "
${yaws} --stop ${idopts}
eend $?
}
reload() {
ebegin "Reloading yaws "
${yaws} --hup ${idopts}
eend $?
}
query() {
ebegin "Querying yaws "
${yaws} --status ${idopts}
eend $?
}
Jump to Line
Something went wrong with that request. Please try again.