1 |
commit: e3ca911b12cb1ec292f6d15535c0beef3faa0549 |
2 |
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jun 11 18:27:50 2021 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jun 11 18:34:34 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e3ca911b |
7 |
|
8 |
sci-mathematics/rstudio: Fix server startup scripts |
9 |
|
10 |
Closes: https://bugs.gentoo.org/765856 |
11 |
Thanks-to: viktor.polak |
12 |
Thanks-to: François Valenduc |
13 |
Package-Manager: Portage-3.0.19, Repoman-3.0.3 |
14 |
Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org> |
15 |
|
16 |
sci-mathematics/rstudio/files/rstudio-server.initd | 6 +++++- |
17 |
sci-mathematics/rstudio/files/rstudio-server.service.in | 1 + |
18 |
.../rstudio/{rstudio-1.3.1093.ebuild => rstudio-1.3.1093-r1.ebuild} | 0 |
19 |
3 files changed, 6 insertions(+), 1 deletion(-) |
20 |
|
21 |
diff --git a/sci-mathematics/rstudio/files/rstudio-server.initd b/sci-mathematics/rstudio/files/rstudio-server.initd |
22 |
index caa7e46d5df..96c1e4f210c 100644 |
23 |
--- a/sci-mathematics/rstudio/files/rstudio-server.initd |
24 |
+++ b/sci-mathematics/rstudio/files/rstudio-server.initd |
25 |
@@ -1,7 +1,11 @@ |
26 |
#!/sbin/openrc-run |
27 |
-# Copyright 1999-2014 Gentoo Foundation |
28 |
+# Copyright 1999-2021 Gentoo Authors |
29 |
# Distributed under the terms of the GNU General Public License v2 |
30 |
|
31 |
+depend() { |
32 |
+ need net |
33 |
+} |
34 |
+ |
35 |
start() { |
36 |
ebegin "Starting RStudio Server" |
37 |
start-stop-daemon --start --quiet --exec /usr/bin/rserver |
38 |
|
39 |
diff --git a/sci-mathematics/rstudio/files/rstudio-server.service.in b/sci-mathematics/rstudio/files/rstudio-server.service.in |
40 |
index fb3e37305e0..08965a836a2 100644 |
41 |
--- a/sci-mathematics/rstudio/files/rstudio-server.service.in |
42 |
+++ b/sci-mathematics/rstudio/files/rstudio-server.service.in |
43 |
@@ -1,5 +1,6 @@ |
44 |
[Unit] |
45 |
Description=RStudio Server |
46 |
+After=network.target |
47 |
|
48 |
[Service] |
49 |
Type=forking |
50 |
|
51 |
diff --git a/sci-mathematics/rstudio/rstudio-1.3.1093.ebuild b/sci-mathematics/rstudio/rstudio-1.3.1093-r1.ebuild |
52 |
similarity index 100% |
53 |
rename from sci-mathematics/rstudio/rstudio-1.3.1093.ebuild |
54 |
rename to sci-mathematics/rstudio/rstudio-1.3.1093-r1.ebuild |