diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 20:17:25 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 20:17:25 +0100 |
commit | 62f82c107c3904ac6917ece47301d2999c7dd90e (patch) | |
tree | 48ddfc2291e77d0e3ad80f6d7c5f403d84ae8414 /app-misc/fhem/files/fhem.initd | |
parent | 7fe80ac8764ccbf354f82029a6bce4f96dbb8d5d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'app-misc/fhem/files/fhem.initd')
-rw-r--r-- | app-misc/fhem/files/fhem.initd | 17 |
1 files changed, 17 insertions, 0 deletions
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}" +} |