#!/sbin/openrc-run

description="adblock-lean service"

command="/usr/bin/adblock-lean"
pidfile="/run/adblock-lean/adblock-lean.pid"

depend() {
	need net dnsmasq
	after firewall
}

start() {
	ebegin "Starting adblock-lean"
	$command start
	eend $?
}

stop() {
	ebegin "Stopping adblock-lean"
	$command stop
	eend $?
}

status() {
	$command status
}

restart() {
	ebegin "Restarting adblock-lean"
	$command restart
	eend $?
}

pause() {
	ebegin "Pausing adblock-lean"
	$command pause
	eend $?
}

resume() {
	ebegin "Resuming adblock-lean"
	$command resume
	eend $?
}

extra_commands="pause resume"
