Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
52 lines (38 sloc) 790 Bytes
#!/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 $?
}
Something went wrong with that request. Please try again.