mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-17 22:15:17 +03:00
28 lines
520 B
Text
28 lines
520 B
Text
#!/sbin/openrc-run
|
|
description="Initialize Lapis Server"
|
|
command="/usr/bin/lapis"
|
|
command_args="server production"
|
|
pidfile="/var/run/nginx/nginx.pid"
|
|
lapis_path=/usr/share/lapis
|
|
|
|
depend() {
|
|
need net openresty
|
|
}
|
|
|
|
start() {
|
|
ebegin "Starting Lapis"
|
|
start-stop-daemon --start \
|
|
--chdir ${lapis_path} \
|
|
--exec ${command} ${command_args} \
|
|
-b --make-pidfile \
|
|
--pidfile "${pidfile}"
|
|
eend $?
|
|
}
|
|
|
|
stop() {
|
|
ebegin "Stopping Lapis"
|
|
start-stop-daemon --stop \
|
|
--exec ${command} \
|
|
--pidfile "${pidfile}"
|
|
eend $?
|
|
}
|