File tree 2 files changed +9
-3
lines changed
2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -48,8 +48,8 @@ case "$1" in
48
48
rc_status
49
49
;;
50
50
reload)
51
- # # we don't support reload
52
- rc_failed 3
51
+ echo -n " Reload shiny-server "
52
+ /sbin/killproc -HUP shiny-server
53
53
rc_status -v
54
54
;;
55
55
status)
Original file line number Diff line number Diff line change 53
53
sudo initctl stop shiny-server 2> /dev/null
54
54
sudo initctl start shiny-server
55
55
else
56
- cp ${CMAKE_INSTALL_PREFIX} /shiny-server/config/init.d/redhat/shiny-server /etc/init.d/
56
+ if test -d /etc/SuSE-release
57
+ then
58
+ cp ${CMAKE_INSTALL_PREFIX} /shiny-server/config/init.d/suse/shiny-server /etc/init.d/
59
+ else
60
+ cp ${CMAKE_INSTALL_PREFIX} /shiny-server/config/init.d/redhat/shiny-server /etc/init.d/
61
+ fi
62
+
57
63
chmod +x /etc/init.d/shiny-server
58
64
chkconfig --add shiny-server
59
65
service shiny-server stop 2> /dev/null
You can’t perform that action at this time.
0 commit comments