Skip to content

Commit a226d59

Browse files
committed
Setup init.d scripts for SUSE.
1 parent 4c0cf6f commit a226d59

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

config/init.d/suse/shiny-server

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ case "$1" in
4848
rc_status
4949
;;
5050
reload)
51-
## we don't support reload
52-
rc_failed 3
51+
echo -n "Reload shiny-server"
52+
/sbin/killproc -HUP shiny-server
5353
rc_status -v
5454
;;
5555
status)

packaging/rpm-script/postinst.sh.in

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,13 @@ then
5353
sudo initctl stop shiny-server 2>/dev/null
5454
sudo initctl start shiny-server
5555
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+
5763
chmod +x /etc/init.d/shiny-server
5864
chkconfig --add shiny-server
5965
service shiny-server stop 2>/dev/null

0 commit comments

Comments
 (0)