diff options
author | Eivind Uggedal <eivind@uggedal.com> | 2014-05-31 08:35:12 +0000 |
---|---|---|
committer | Eivind Uggedal <eivind@uggedal.com> | 2014-05-31 08:35:12 +0000 |
commit | 53e390857ccde21171e050622de1cbe3f73b53e1 (patch) | |
tree | db60526c240c40183debde5dc9a39fdc6e3c1aef /unmaintained/yaws/yaws.initd | |
parent | 3c332a2c4a413682afeea18f3cb4e5a2834efee3 (diff) | |
download | aports-53e390857ccde21171e050622de1cbe3f73b53e1.tar.bz2 aports-53e390857ccde21171e050622de1cbe3f73b53e1.tar.xz |
testing/yaws: move to unmaintained
Diffstat (limited to 'unmaintained/yaws/yaws.initd')
-rwxr-xr-x | unmaintained/yaws/yaws.initd | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/unmaintained/yaws/yaws.initd b/unmaintained/yaws/yaws.initd new file mode 100755 index 000000000..5867acf5a --- /dev/null +++ b/unmaintained/yaws/yaws.initd @@ -0,0 +1,52 @@ +#!/sbin/runscript +# +# Startup script for the Yaws Web Server (for Alpine Linux) +# +# config: /etc/conf.d/yaws +# +# description: yaws - Erlang enabled http server +# +# use: rc-update add yaws default +# + +yaws=/usr/bin/yaws + +# By default we run with the default id +# idopts="--id myserverid" + +conf="--conf /etc/yaws/yaws.conf" + +extra_started_commands="restart reload" +extra_commands="query" + +depend() { + need net +} + + +start() { + ebegin "Starting yaws " + ${yaws} --daemon --heart ${conf} + eend $? +} + + +stop() { + ebegin "Stopping yaws " + ${yaws} --stop ${idopts} + eend $? "Failed to stop yaws" +} + + +reload() { + ebegin "Reloading yaws " + ${yaws} --hup ${idopts} + eend $? "Failed to reload yaws" +} + +query() { + ebegin "Querying yaws " + ${yaws} --status ${idopts} + eend $? +} + |