Diff of /main/trunk/platform/unix/rpm_post.txt [000000] .. [r10049] Maximize Restore

  Switch to side-by-side view

--- a
+++ b/main/trunk/platform/unix/rpm_post.txt
@@ -0,0 +1,18 @@
+# Add links for some ooRexx scripts
+ln -sf %{_datadir}/ooRexx/rexxtry.rex %{_bindir}/rexxtry.rex
+# Add the rxapi service
+if [ -x /usr/bin/systemctl ]; then
+   systemctl link %{_datadir}/ooRexx/rxapid.service
+   systemctl --system daemon-reload
+   systemctl start rxapid.service
+elif [ -x /sbin/insserv ]; then
+   ln -sf %{_bindir}/rxapid /etc/init.d/rxapid
+   # try insserv first (for Suse)
+   insserv -f rxapid
+   service rxapid start
+else
+   ln -sf %{_bindir}/rxapid /etc/init.d/rxapid
+   # else, try good old chkconfig
+   chkconfig --add rxapid
+   service rxapid start
+fi