30 lines
640 B
Plaintext
30 lines
640 B
Plaintext
#!/sbin/runscript
|
|
# Copyright 1999-2015 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: $
|
|
|
|
config="/etc/make-proxy/server"
|
|
pidfile="/run/make-proxy/mp-server.pid"
|
|
command="/usr/bin/erl -pa /opt/make-proxy/server/ebin -config ${config} +K true -s make_proxy_server start -noshell"
|
|
|
|
depend() {
|
|
need net
|
|
}
|
|
|
|
start() {
|
|
ebegin "Starting make-proxy-server"
|
|
|
|
start-stop-daemon --start --exec ${command} \
|
|
-- -c ${config} -f ${pidfile} >/dev/null 2>&1 &
|
|
|
|
eend $?
|
|
}
|
|
|
|
stop() {
|
|
ebegin "Stopping make-proxy-server"
|
|
|
|
start-stop-daemon --stop --pidfile ${pidfile}
|
|
|
|
eend $?
|
|
}
|