mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-15 20:25:17 +03:00
High-performance, lightweight, open source HTTP server with web-gui https://open.litespeedtech.com/
33 lines
496 B
Bash
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 $?
|
|
}
|