mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 05:36:47 +00:00
rpcbind: switch to systemd support
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
22df25c310
commit
0337406c95
@ -1,26 +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 rpcbind daemon
|
||||
#
|
||||
# runlevels: openelec, textmode
|
||||
|
||||
progress "start rpcbind daemon"
|
||||
rpcbind > /dev/null 2>&1 &
|
@ -39,3 +39,7 @@ PKG_CONFIGURE_OPTS_TARGET="--enable-warmstarts \
|
||||
--disable-libwrap \
|
||||
--with-statedir=/tmp \
|
||||
--with-rpcuser=root"
|
||||
|
||||
post_install() {
|
||||
enable_service rpcbind.service
|
||||
}
|
||||
|
14
packages/network/rpcbind/system.d/rpcbind.service
Normal file
14
packages/network/rpcbind/system.d/rpcbind.service
Normal file
@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=RPC bind service
|
||||
Requires=rpcbind.socket
|
||||
After=syslog.target network.target
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
# EnvironmentFile=/etc/sysconfig/rpcbind
|
||||
ExecStart=/usr/bin/rpcbind -w ${RPCBIND_ARGS}
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Also=rpcbind.socket
|
||||
|
9
packages/network/rpcbind/system.d/rpcbind.socket
Normal file
9
packages/network/rpcbind/system.d/rpcbind.socket
Normal file
@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Description=RPCbind Server Activation Socket
|
||||
|
||||
[Socket]
|
||||
ListenStream=/var/run/rpcbind.sock
|
||||
|
||||
[Install]
|
||||
WantedBy=sockets.target
|
||||
|
Loading…
x
Reference in New Issue
Block a user