From 62f82c107c3904ac6917ece47301d2999c7dd90e Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 14 Jul 2018 20:17:25 +0100 Subject: gentoo resync : 14.07.2018 --- app-misc/fhem/files/fhem.initd | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 app-misc/fhem/files/fhem.initd (limited to 'app-misc/fhem/files/fhem.initd') diff --git a/app-misc/fhem/files/fhem.initd b/app-misc/fhem/files/fhem.initd new file mode 100644 index 000000000000..424948719010 --- /dev/null +++ b/app-misc/fhem/files/fhem.initd @@ -0,0 +1,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}" +} -- cgit v1.2.3