diff options
author | randomdan <randomdan@localhost> | 2013-12-13 11:38:27 +0000 |
---|---|---|
committer | randomdan <randomdan@localhost> | 2013-12-13 11:38:27 +0000 |
commit | d0c24ab570da628d37ba21e0830d370fca0d80a2 (patch) | |
tree | 907a5945df5de99e0790fea14032d0106d3bfef8 /dev-db | |
parent | Bump (diff) | |
download | portage-d0c24ab570da628d37ba21e0830d370fca0d80a2.tar.bz2 portage-d0c24ab570da628d37ba21e0830d370fca0d80a2.tar.xz portage-d0c24ab570da628d37ba21e0830d370fca0d80a2.zip |
Add init script
Diffstat (limited to 'dev-db')
-rw-r--r-- | dev-db/marklogic/Manifest | 3 | ||||
-rwxr-xr-x | dev-db/marklogic/files/init | 21 | ||||
-rw-r--r-- | dev-db/marklogic/marklogic-5.0-r1.ebuild (renamed from dev-db/marklogic/marklogic-5.0.ebuild) | 3 |
3 files changed, 26 insertions, 1 deletions
diff --git a/dev-db/marklogic/Manifest b/dev-db/marklogic/Manifest index 8186a10..c25e956 100644 --- a/dev-db/marklogic/Manifest +++ b/dev-db/marklogic/Manifest @@ -1,2 +1,3 @@ +AUX init 383 SHA256 bab458eee5823c4adcae27b07983dd3761dba90ac5b1e750ebedce9305a140a9 SHA512 599e1965a184c6737d1541e0445dbfbd8119c47618e8999ec72403a53f4a9ce8dae3eab003096ba3f343b5277c519901f63e510ef377f25ed8510a6ddd126059 WHIRLPOOL e2403193927fde09fd3292d04dace64b4262e2de08bb4500b8aba63bbe05673eb751dec37ce5e2720915dca039bae0f118ff888dd57e7f60ff1838e463e6f47f DIST MarkLogic-5.0-5.x86_64.rpm 122927826 SHA256 2c8f5fe84a8c68f2c8b195082a0d2966314b5027932e169ae5c36f89a6dc2f78 SHA512 5bd95aed956482e80cb9390995bdf31c84886a9d29891368de826ca6fd98a76c61dd8ad7291e398c729be36a1707fb0b2c2dd0d536c1f2fe6a0cb1052722dd6a WHIRLPOOL d2ae8305e7902d0273ff1e25c8a5185d6ce6ce3d5a8650ebd8e7d2d9f6d185dfd3a9064da4f8cea0a3d08faf9e2f725009cda0c390e576b067e36fd484749075 -EBUILD marklogic-5.0.ebuild 619 SHA256 c413130c5da35511809744fdd0b98c646b6a2e5e834fca70a2a6f23452ca16b4 SHA512 abffedaaf10efed95bc693ed9288c0e45b8d0e8a02c9704ea497bca24fe45d01133a3d1ce9fc0a0627228642727160e21842c9974bd7d4483169838fb36cff6a WHIRLPOOL c2c6373f51466dd2386bf05ec0bacd512770942575fc4688b8a9e1a6c21339899de5eede79a7b125582981741e1e51636db6e57c9daa0c807266edb6f5e960f8 +EBUILD marklogic-5.0-r1.ebuild 677 SHA256 c449affcafaa4d5b1024b196ec6850ff57b6496a27f2d9eab17194d7c5cb9028 SHA512 eb16fe281c179a681292e923c5a3c53270e005abd8601cb18452d5eb537d7a4df2ea9ca050fa51313f7b8b9e5d7785b62d754b824622ab39d43111a8097d487c WHIRLPOOL 640b25c2645c4d39abd2ea188387003e55a22a0b47b5733170e0c5f9284c2ec7429997de797ae3481a266e9c2b6a438132763e4269f4aa1f573422bcabee5fd6 diff --git a/dev-db/marklogic/files/init b/dev-db/marklogic/files/init new file mode 100755 index 0000000..ef4c574 --- /dev/null +++ b/dev-db/marklogic/files/init @@ -0,0 +1,21 @@ +#!/sbin/runscript +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +depend() { + use net localmount +} + +start() { + ebegin "Starting MarkLogic..." + /opt/MarkLogic/bin/MarkLogic + eend $? +} + +stop() { + ebegin "Stopping MarkLogic..." + killall MarkLogic + eend $? + while ps -fC MarkLogic > /dev/null ; do sleep 1; done +} diff --git a/dev-db/marklogic/marklogic-5.0.ebuild b/dev-db/marklogic/marklogic-5.0-r1.ebuild index 222d3b1..11ffc37 100644 --- a/dev-db/marklogic/marklogic-5.0.ebuild +++ b/dev-db/marklogic/marklogic-5.0-r1.ebuild @@ -25,4 +25,7 @@ src_unpack() { src_install() { mkdir -p ${D}/var/opt/MarkLogic cp -a ${S}/opt ${D} || die "Install failed" + + exeinto /etc/init.d + newexe ${FILESDIR}/init marklogic } |