eventlircd: switch to systemd support

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2013-08-04 15:06:54 +02:00
parent 8b763030b0
commit 4d0e6078d6
3 changed files with 16 additions and 28 deletions

View File

@ -1,28 +0,0 @@
################################################################################
# Copyright (C) 2009-2010 OpenELEC.tv
# http://www.openelec.tv
#
# This Program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This Program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with OpenELEC.tv; see the file COPYING. If not, write to
# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA.
# http://www.gnu.org/copyleft/gpl.html
################################################################################
# start the eventlircd daemon
#
# runlevels: openelec, textmode
(
progress "starting eventlircd"
eventlircd --evmap=/etc/eventlircd.d --socket=/var/run/lirc/lircd --release=_UP
)&

View File

@ -44,3 +44,6 @@ post_makeinstall_target() {
cp $PKG_DIR/evmap/*.evmap $INSTALL/etc/eventlircd.d cp $PKG_DIR/evmap/*.evmap $INSTALL/etc/eventlircd.d
} }
post_install() {
enable_service eventlircd.service
}

View File

@ -0,0 +1,13 @@
[Unit]
Description=Eventlirc server daemon
After=syslog.target
[Service]
# EnvironmentFile=/etc/sysconfig/eventlircd
ExecStart=/usr/sbin/eventlircd -f --evmap=/etc/eventlircd.d --socket=/var/run/lirc/lircd --release=_UP
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
[Install]
WantedBy=multi-user.target