diff options
Diffstat (limited to 'app-misc/logiops/files/logid.initd')
-rw-r--r-- | app-misc/logiops/files/logid.initd | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/app-misc/logiops/files/logid.initd b/app-misc/logiops/files/logid.initd new file mode 100644 index 000000000000..3c852c6e4397 --- /dev/null +++ b/app-misc/logiops/files/logid.initd @@ -0,0 +1,19 @@ +#!/sbin/openrc-run +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +logid_config="/etc/logid.cfg" +name="Logitech Configuration Daemon" +pidfile="${RC_PREFIX}/run/logid.pid" + +command="${RC_PREFIX}/usr/bin/logid" +command_background="true" +command_args="-c ${logid_config}" + +start_pre() { + if [ ! -f "${logid_config}" ]; then + eerror "The file '${logid_config}' could not be found!" + eerror "Please create one before you start the daemon." + exit 1 + fi +} |