summaryrefslogtreecommitdiff
blob: 504ad104cb293219ca18b197fb806c819b2186bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/sbin/openrc-run
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

need="net localmount"
command="/usr/bin/taskd"
command_args="server --data ${TASKDDATA:-/var/lib/taskd}"
pidfile="/run/taskd.pid"
start_stop_daemon_args="--user taskd:taskd"
command_background=1
extra_started_commands="reload"

reload() {
	kill -HUP "$(cat $pidfile)"
}