summaryrefslogtreecommitdiff
blob: 46a868380aa3ec00b76a5cc748dfc0d32c4918b2 (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
#!/sbin/openrc-run
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

extra_started_commands="reload"

command="/usr/bin/atheme-services"
command_user="atheme-services"
pidfile="/var/run/atheme/atheme.pid"

name="Atheme IRC Services"

depend() {
	need net
	use ircd
	provide irc-services
}

start_pre() {
	checkpath -d "/var/run/atheme" -o atheme-services
}

reload() {
	ebegin "Reloading ${SVCNAME}"
	start-stop-daemon --signal HUP --pidfile "${pidfile}"
	eend $?
}