Skip to content

Commit

Permalink
IQSS#8856 update rserve-setup.sh for RHEL/Rocky 9
Browse files Browse the repository at this point in the history
  • Loading branch information
Don Sizemore committed Jun 7, 2024
1 parent 5ee7308 commit 8aa7d69
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions scripts/r/rserve/rserve-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,14 @@ else
echo "Rserve password file (/etc/Rserv.pwd) already exists."
fi

if [ ! -f /etc/init.d/rserve ]
if [ ! -f /usr/lib/systemd/system/rserve.service ]
then
echo "Installing Rserve startup file."
install rserve-startup.sh /etc/init.d/rserve
chkconfig rserve on
echo "You can start Rserve daemon by executing"
echo " service rserve start"
echo
echo "If this is a RedHat/CentOS 7/8 system, you may want to use the systemctl file rserve.service instead (provided in this directory)"
echo "Installing Rserve systemd unit file."
cp rserve.service /usr/lib/systemd/system
systemctl start rserve
systemctl enable rserve
else
echo "Rserve startup file already in place."
echo "Rserve systemd unit file already in place."
fi

if [ ! -d /var/run/rserve ]
Expand Down

0 comments on commit 8aa7d69

Please sign in to comment.