Skip to content

Rstudio server

Tester edited this page Jan 8, 2016 · 7 revisions

RSTUDIO-SERVER

Installation

rstudio-server user and group

At installation, a rstudio-server system user and group is created. Home directory is /var/lib64/rstudio-server/www and owned by rstudio-server:rstudio-server.

Configuration

RStudio is configured by adding entries to two configuration files (note that these files do not exist by default so you will need to create them if you wish to specify custom settings):

/etc/rstudio/rserver.conf
/etc/rstudio/rsession.conf

Server managent

Start the server and enable it with the systemd service file.

/etc/systemd/system/rstudio-server.service
-----------------------------------------
[Unit]
Description=RStudio Server daemon
Requires=rstudio-server.socket
After=syslog.target network.target

[Service]
User=rstudio-server
Group=rstudio-server
ExecStart=/usr/bin/rserver --server-daemonize=0
ExecStop=/bin/kill -HUP $MAINPID
KillMode=process

[Install]
WantedBy=multi-user.target
/etc/systemd/system/rstudio-server.socket
----------------------------------------
[Unit]
Description=rstudio-server socket

[Socket]
ListenStream=/run/rstudio-server/rstudio-server.sock

Ressources

Clone this wiki locally