summarylogtreecommitdiffstats
path: root/rserve-sandbox-docker.service
diff options
context:
space:
mode:
authorFranco Masotti2017-02-17 12:16:22 +0100
committerFranco Masotti2017-02-17 12:16:22 +0100
commitd0e694896039fc52ecc3ebaa5e026e497d15517d (patch)
tree47ffb87b1fec0a0b5a533dc5dd28a6dae26eabac /rserve-sandbox-docker.service
downloadaur-d0e694896039fc52ecc3ebaa5e026e497d15517d.tar.gz
Added files.
Diffstat (limited to 'rserve-sandbox-docker.service')
-rw-r--r--rserve-sandbox-docker.service43
1 files changed, 43 insertions, 0 deletions
diff --git a/rserve-sandbox-docker.service b/rserve-sandbox-docker.service
new file mode 100644
index 000000000000..d655e1da0fc1
--- /dev/null
+++ b/rserve-sandbox-docker.service
@@ -0,0 +1,43 @@
+#
+# rserve-sandbox-docker.service
+#
+# Copyright (C) 2016 frnmst (Franco Masotti) <franco.masotti@student.unife.it>
+#
+# This file is part of cplint-installer.
+#
+# cplint-installer is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# cplint-installer is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with cplint-installer. If not, see <http://www.gnu.org/licenses/>.
+#
+#
+
+# To be placed in /usr/lib/systemd/system/rserve-sandbox-docker.service
+
+[Unit]
+Description=Docker spec for running Rserve in a sandbox
+Documentation=https://gitlab.com/frnmst/rserve-sandbox-bin https://github.com/JanWielemaker/rserve_client
+Requires=docker.service
+After=docker.service
+
+[Service]
+ExecStart=/usr/bin/rserve-sandbox-docker -s
+ExecStop=/usr/bin/rserve-sandbox-docker -k
+Type=forking
+PIDFile=/run/rserve-sandbox-docker/rserve-sandbox-docker.pid
+User=rsd
+Group=rsd
+RuntimeDirectory=rserve-sandbox-docker
+
+[Install]
+Also=docker.service
+WantedBy=default.target
+