diff options
author | 2008-12-11 20:33:39 +0000 | |
---|---|---|
committer | 2008-12-11 20:33:39 +0000 | |
commit | 03ed190857e6080eb0d407cace9a07395c0ecfff (patch) | |
tree | 66e8b5f5a586dc0c021149df4b021ab1534c1425 | |
parent | Use pool-lenny, it has newer releases (diff) | |
download | nx-03ed190857e6080eb0d407cace9a07395c0ecfff.tar.gz nx-03ed190857e6080eb0d407cace9a07395c0ecfff.tar.bz2 nx-03ed190857e6080eb0d407cace9a07395c0ecfff.zip |
Add init script for x2go server, works OK
svn path=/testing/; revision=212
-rw-r--r-- | net-misc/x2goserver/Manifest | 3 | ||||
-rw-r--r-- | net-misc/x2goserver/files/x2goserver.init | 24 | ||||
-rw-r--r-- | net-misc/x2goserver/x2goserver-2.0.1.16.ebuild | 3 |
3 files changed, 28 insertions, 2 deletions
diff --git a/net-misc/x2goserver/Manifest b/net-misc/x2goserver/Manifest index d6c9c9f..ffc08e5 100644 --- a/net-misc/x2goserver/Manifest +++ b/net-misc/x2goserver/Manifest @@ -1,2 +1,3 @@ +AUX x2goserver.init 479 RMD160 e885b37aba55590134ef781e23526e2aa67c2369 SHA1 22ab9f144f73c6cec82426bc3265a0bb8daddd8e SHA256 5ecaf0ed563112124ea3d2955ef9f533bff16fdb8be48c46e64b012c9dedfd40 DIST x2goserver_2.0.1-16_all.deb 13282 RMD160 534edd191763b8ac06ee10f83beb84198cc6b597 SHA1 a853ebb6251297e8585d53ea0a4fdfec27050312 SHA256 29bf3698f1a9663e7935d11d51960488f368b466dce47f0c7fa74f6a859270f9 -EBUILD x2goserver-2.0.1.16.ebuild 1393 RMD160 93b157d7c9d51f6eccbdc016413afc8e6be9910d SHA1 3062eaad6cf43d4454551a87effc01d3ff8fc5d3 SHA256 4a7fd53761b412d8a4fa3a1a1e70d79d8a5d57fd28954a27ab299fde94425bb1 +EBUILD x2goserver-2.0.1.16.ebuild 1404 RMD160 c2450d26b1e9c9bcdb12d717289b629880015bd5 SHA1 aee93509bbf51696d9bec2b14d92dcd74b734960 SHA256 0f445d11557ba5d18913a805df9436fe646c1121191e7f098f982e9718f440e4 diff --git a/net-misc/x2goserver/files/x2goserver.init b/net-misc/x2goserver/files/x2goserver.init new file mode 100644 index 0000000..223333d --- /dev/null +++ b/net-misc/x2goserver/files/x2goserver.init @@ -0,0 +1,24 @@ +#!/sbin/runscript +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +DAEMON=/usr/sbin/x2gocleansessions + +depend() { + before sshd +} + +start() { + ebegin "Starting ${SVCNAME}" + start-stop-daemon --start --quiet --pidfile /var/run/${SVCNAME}.pid \ + --exec ${DAEMON} -- $DAEMON_OPTS + + eend $? +} + +stop() { + ebegin "Stopping ${SVCNAME}" + start-stop-daemon --stop --quiet --pidfile /var/run/{$SVCNAME}.pid + eend $? +} diff --git a/net-misc/x2goserver/x2goserver-2.0.1.16.ebuild b/net-misc/x2goserver/x2goserver-2.0.1.16.ebuild index 6f4f524..f361cee 100644 --- a/net-misc/x2goserver/x2goserver-2.0.1.16.ebuild +++ b/net-misc/x2goserver/x2goserver-2.0.1.16.ebuild @@ -41,7 +41,8 @@ src_install() { insinto /etc/x2go doins etc/x2go/sql - #TODO write Gentoo initd file + + newinitd "${FILESDIR}"/${PN}.init ${PN} } pkg_postinst() { |