Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Diff of /main/trunk/platform/unix/oorexx.spec.in [r9604] .. [r9605] Maximize Restore

  Switch to unified view

a/main/trunk/platform/unix/oorexx.spec.in b/main/trunk/platform/unix/oorexx.spec.in
...
...
250
# Add links for some ooRexx scripts
250
# Add links for some ooRexx scripts
251
ln -sf %{_datadir}/ooRexx/rexxtry.rex %{_bindir}/rexxtry.rex
251
ln -sf %{_datadir}/ooRexx/rexxtry.rex %{_bindir}/rexxtry.rex
252
# Add the rxapi service
252
# Add the rxapi service
253
if [ -x /usr/bin/systemctl ]; then
253
if [ -x /usr/bin/systemctl ]; then
254
   systemctl link /usr/share/ooRxee/rxapid.service
254
   systemctl link /usr/share/ooRxee/rxapid.service
255
   echo "%{_libdir}/ooRexx" > /etc/ld.so.conf.d/ooRexx.conf
255
   systemctl --system daemon-reload
256
   ldconfig
257
   systemctl start rxapid.service
256
   systemctl start rxapid.service
258
elif [ -x /sbin/insserv ]; then
257
elif [ -x /sbin/insserv ]; then
259
   ln -sf %{_bindir}/rxapid /etc/init.d/rxapid
258
   ln -sf %{_bindir}/rxapid /etc/init.d/rxapid
260
   # try insserv first (for Suse)
259
   # try insserv first (for Suse)
261
   insserv -f rxapid
260
   insserv -f rxapid
262
   echo "%{_libdir}/ooRexx" > /etc/ld.so.conf.d/ooRexx.conf
263
   ldconfig
264
   service rxapid start
261
   service rxapid start
265
else
262
else
266
   ln -sf %{_bindir}/rxapid /etc/init.d/rxapid
263
   ln -sf %{_bindir}/rxapid /etc/init.d/rxapid
267
   # else, try good old chkconfig
264
   # else, try good old chkconfig
268
   chkconfig --add rxapid
265
   chkconfig --add rxapid
269
   echo "%{_libdir}/ooRexx" > /etc/ld.so.conf.d/ooRexx.conf
270
   ldconfig
271
   service rxapid start
266
   service rxapid start
272
fi
267
fi
273
268
274
#******************************************************************************
269
#******************************************************************************
275
%preun
270
%preun
276
#******************************************************************************
271
#******************************************************************************
277
# Remove rxapi service
272
# Remove rxapi service
278
if [ -x /usr/bin/systemctl ]; then
273
if [ -x /usr/bin/systemctl ]; then
279
   systemctl stop rxapid.service
274
   systemctl stop rxapid.service
280
   # Remove misc
281
   rm -f /etc/systemd/system/rxapid.service
275
   rm -f /etc/systemd/system/rxapid.service
282
   rm -f /etc/ld.so.conf.d/ooRexx.conf
276
   systemctl --system daemon-reload
283
   ldconfig
284
elif [ -x /sbin/insserv ]; then
277
elif [ -x /sbin/insserv ]; then
285
   service rxapid stop
278
   service rxapid stop
286
   # try insserv first (for Suse)
279
   # try insserv first (for Suse)
287
   insserv -f rxapid
280
   insserv -f rxapid
288
   # Remove the rxapi daemon
281
   # Remove the rxapi daemon
289
   rm -f /etc/init.d/rxapid
282
   rm -f /etc/init.d/rxapid
290
   # Remove misc
291
   rm -f %{_bindir}/rexxtry.rex
292
   rm -f /etc/ld.so.conf.d/ooRexx.conf
293
   ldconfig
294
else
283
else
295
   service rxapid stop
284
   service rxapid stop
296
   # else, try good old chkconfig
297
   chkconfig --del rxapid
285
   chkconfig --del rxapid
298
   # Remove the rxapi daemon
299
   rm -f /etc/init.d/rxapid
286
   rm -f /etc/init.d/rxapid
300
   # Remove misc
301
   rm -f %{_bindir}/rexxtry.rex
302
   rm -f /etc/ld.so.conf.d/ooRexx.conf
303
   ldconfig
304
fi
287
fi
288
rm -f %{_bindir}/rexxtry.rex
305
289
306
#******************************************************************************
290
#******************************************************************************
307
%postun
291
%postun
308
#******************************************************************************
292
#******************************************************************************
309
rm -f /etc/ld.so.conf.d/ooRexx.conf
310
ldconfig
311
293
312
#******************************************************************************
294
#******************************************************************************
313
%changelog
295
%changelog
314
#******************************************************************************
296
#******************************************************************************
315
297