1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-15 20:25:17 +03:00
aports/testing/litespeed/litespeed.initd
Valery Kartel fa2ced42fe testing/litespeed: new aport
High-performance, lightweight, open source HTTP server with web-gui
https://open.litespeedtech.com/
2017-02-22 11:29:39 +00:00

33 lines
496 B
Bash

#!/sbin/openrc-run
description="LiteSpeed Web Server"
lshome=/var/lib/litespeed
command=$lshome/bin/lswsctrl
cfgfile=$lshome/conf/httpd_config.conf
pidfile=/tmp/lshttpd/lshttpd.pid
required_files="$cfgfile"
depend() {
need net
use dns netmount
}
start() {
ebegin "Starting $RC_SVCNAME"
$command start >/dev/null
eend $?
}
stop() {
ebegin "Stopping $RC_SVCNAME"
$command stop >/dev/null
eend $?
}
restart() {
ebegin "Restarting $RC_SVCNAME"
$command restart >/dev/null
eend $?
}