aboutsummaryrefslogtreecommitdiffstats
path: root/testing/litespeed/litespeed.initd
blob: ee3cf42ecd387993c742396280200ebf8e7c82fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/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 $?
}