diff options
author | 2016-06-27 17:36:38 -0400 | |
---|---|---|
committer | 2016-07-01 22:44:13 +0200 | |
commit | e2dc560329d213f2e527b9140234157c19965240 (patch) | |
tree | 3241cb45af67e1161dfd2924430ae4330c233c23 /app-misc/lirc/files | |
parent | sci-electronics/fritzing: Install parts library with 0.9.2b #548624 (diff) | |
download | gentoo-e2dc560329d213f2e527b9140234157c19965240.tar.gz gentoo-e2dc560329d213f2e527b9140234157c19965240.tar.bz2 gentoo-e2dc560329d213f2e527b9140234157c19965240.zip |
app-misc/lirc-0.9.4: version bump
Significantly cleaned up and uses upstream's systemd units.
Gentoo-bug: 515902, 579478
Closes: https://github.com/gentoo/gentoo/pull/1774
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'app-misc/lirc/files')
-rw-r--r-- | app-misc/lirc/files/irexec-initd | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/app-misc/lirc/files/irexec-initd b/app-misc/lirc/files/irexec-initd new file mode 100644 index 000000000000..377ca0d2cf97 --- /dev/null +++ b/app-misc/lirc/files/irexec-initd @@ -0,0 +1,28 @@ +#!/sbin/runscript +# Copyright 2003 Martin Hierling <mad@cc.fh-lippe.de> +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +: ${IREXEC_USER:=root} + +depend() { + need lircd +} + +start() { + if [ "x${IREXEC_USER}" = "xroot" -a "x${IREXEC_DISABLE_ROOT_WARNING}" != "xyes" ]; then + ewarn "Warning: Running irexec as root can open security holes" + fi + + ebegin "Starting irexec" + start-stop-daemon --start --chuid ${IREXEC_USER} --user ${IREXEC_USER} --chdir / \ + --exec /usr/bin/irexec -- --daemon ${IREXEC_OPTS} + eend $? "Failed to start irexec." +} + +stop() { + ebegin "Stopping irexec" + start-stop-daemon --stop --exec /usr/bin/irexec --user ${IREXEC_USER} + eend $? "Failed to stop irexec." +} + |