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

home="/opt/fhem"
command="${home}/fhem.pl"
command_args="${home}/fhem.cfg"
command_group="fhem"
command_user="fhem"
name="FHEM"
pidfile_path="/run/fhem"
pidfile="${pidfile_path}/fhem.pid"
start_stop_daemon_args="--chdir ${home}"

start_pre() {
	checkpath -d  -o "${command_user}:${command_group}" -q "${pidfile_path}"
}