Initial import
This commit is contained in:
8
net-misc/xrdp/files/startwm.sh
Normal file
8
net-misc/xrdp/files/startwm.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
# try hard to respect Gentoo's wm choice
|
||||
. /etc/profile
|
||||
[ -f /etc/rc.conf ] && . /etc/rc.conf
|
||||
export XSESSION
|
||||
|
||||
. /etc/X11/xinit/xinitrc
|
||||
28
net-misc/xrdp/files/xrdp-initd
Normal file
28
net-misc/xrdp/files/xrdp-initd
Normal file
@@ -0,0 +1,28 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
depend() {
|
||||
use net logger
|
||||
}
|
||||
|
||||
start() {
|
||||
ebegin "Starting X remote desktop daemon"
|
||||
start-stop-daemon --start --pidfile /var/run/xrdp.pid --exec /usr/sbin/xrdp > /dev/null
|
||||
eend $? || return $?
|
||||
|
||||
ebegin "Starting remote desktop session manager"
|
||||
start-stop-daemon --start --pidfile /var/run/xrdp-sesman.pid --exec /usr/sbin/xrdp-sesman > /dev/null
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping X remote desktop daemon"
|
||||
start-stop-daemon --stop --pidfile /var/run/xrdp.pid
|
||||
eend $?
|
||||
|
||||
ebegin "Stopping remote desktop session manager"
|
||||
start-stop-daemon --stop --pidfile /var/run/xrdp-sesman.pid
|
||||
eend $?
|
||||
}
|
||||
4
net-misc/xrdp/files/xrdp-sesman.pamd
Normal file
4
net-misc/xrdp/files/xrdp-sesman.pamd
Normal file
@@ -0,0 +1,4 @@
|
||||
auth include system-remote-login
|
||||
account include system-remote-login
|
||||
password include system-remote-login
|
||||
session include system-remote-login
|
||||
Reference in New Issue
Block a user