-
Notifications
You must be signed in to change notification settings - Fork 476
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
4878 simple r install #4891
4878 simple r install #4891
Changes from all commits
b7e1bf6
1733d96
d3526d2
8015b00
edebcdd
65d0d07
0079ff3
b5abe48
c82fc23
3e3ea39
ce1a7c3
2d152bc
868d2fd
bb39cad
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
workdir /tmp/Rserv | ||
pwdfile /etc/Rserv.pwd | ||
remote enable | ||
auth required | ||
plaintext disable | ||
fileio enable | ||
|
||
port 6311 | ||
maxinbuf 262144 | ||
|
||
maxsendbuf 0 | ||
gid 97 | ||
uid 97 | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
rserve rserve |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
#!/bin/sh | ||
|
||
echo | ||
echo "Configuring Rserve." | ||
echo | ||
|
||
sleep 10 | ||
|
||
|
||
echo | ||
echo "checking if rserve user already exists:" | ||
|
||
RSERVEDIR=/tmp/Rserv | ||
|
||
/usr/sbin/groupadd -g 97 -o -r rserve >/dev/null 2>/dev/null || : | ||
/usr/sbin/useradd -g rserve -o -r -d $RSERVEDIR -s /bin/bash \ | ||
-c "Rserve User" -u 97 rserve 2>/dev/null || : | ||
|
||
echo | ||
|
||
if [ ! -f /etc/Rserv.conf ] | ||
then | ||
echo "installing Rserv configuration file." | ||
install -o rserve -g rserve Rserv.conf /etc/Rserv.conf | ||
echo | ||
else | ||
echo "Rserve configuration file (/etc/Rserv.conf) already exists." | ||
fi | ||
|
||
if [ ! -f /etc/Rserv.pwd ] | ||
then | ||
echo "Installing Rserve password file." | ||
echo "Please change the default password in /etc/Rserv.pwd" | ||
echo "(and make sure this password is set correctly as a" | ||
echo "JVM option in the glassfish configuration of your DVN)" | ||
install -m 0600 -o rserve -g rserve Rserv.pwd /etc/Rserv.pwd | ||
echo | ||
else | ||
echo "Rserve password file (/etc/Rserv.pwd) already exists." | ||
fi | ||
|
||
if [ ! -f /etc/init.d/rserve ] | ||
then | ||
echo "Installing Rserve startup file." | ||
install rserve-startup.sh /etc/init.d/rserve | ||
chkconfig rserve on | ||
echo "You can start Rserve daemon by executing" | ||
echo " service rserve start" | ||
echo | ||
echo "If this is a RedHat/CentOS 7 system, you may want to use the systemctl file rserve.service instead (provided in this directory)" | ||
else | ||
echo "Rserve startup file already in place." | ||
fi | ||
|
||
echo | ||
echo "Successfully installed Dataverse Rserve framework." | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It would be nice to have all this code exercised in Vagrant some day. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Would be very simple to add this to vagrant, yes. What this script does is super straightforward/non-controversial. |
||
echo | ||
|
||
|
||
service rserve start | ||
|
||
exit 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this is better than a6869eb? I guess we want to be able to change or fix the distributions of TwoRavens. Longer term, the TwoRavens team should tag their releases with version numbers.