Diff of /main/trunk/platform/unix/oorexx.spec.in [r9374] .. [r9375]  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
   ln -sf %{_datadir}/ooRexx/rxapid.service /etc/systemd/system/multi-user.target.wants/rxapid.service
254
   ln -sf %{_datadir}/ooRexx/rxapid.service /etc/systemd/system/multi-user.target.wants/rxapid.service
255
   echo %{_libdir}/ooRexx > /etc/ld.so.conf.d/ooRexx.conf
255
   echo "%{_libdir}/ooRexx" > /etc/ld.so.conf.d/ooRexx.conf
256
   ldconfig
256
   ldconfig
257
   systemctl start rxapid.service
257
   systemctl start rxapid.service
258
elif [ -x /sbin/insserv ]; then
258
elif [ -x /sbin/insserv ]; then
259
   ln -sf %{_bindir}/rxapid /etc/init.d/rxapid
259
   ln -sf %{_bindir}/rxapid /etc/init.d/rxapid
260
   # try insserv first (for Suse)
260
   # try insserv first (for Suse)
261
   insserv -f rxapid
261
   insserv -f rxapid
262
   echo %{_libdir}/ooRexx > /etc/ld.so.conf.d/ooRexx.conf
262
   echo "%{_libdir}/ooRexx" > /etc/ld.so.conf.d/ooRexx.conf
263
   ldconfig
263
   ldconfig
264
   service rxapid start
264
   service rxapid start
265
else
265
else
266
   ln -sf %{_bindir}/rxapid /etc/init.d/rxapid
266
   ln -sf %{_bindir}/rxapid /etc/init.d/rxapid
267
   # else, try good old chkconfig
267
   # else, try good old chkconfig
268
   chkconfig --add rxapid
268
   chkconfig --add rxapid
269
   echo %{_libdir}/ooRexx > /etc/ld.so.conf.d/ooRexx.conf
269
   echo "%{_libdir}/ooRexx" > /etc/ld.so.conf.d/ooRexx.conf
270
   ldconfig
270
   ldconfig
271
   service rxapid start
271
   service rxapid start
272
fi
272
fi
273
273
274
#******************************************************************************
274
#******************************************************************************
...
...
277
# Remove rxapi service
277
# Remove rxapi service
278
if [ -x /usr/bin/systemctl ]; then
278
if [ -x /usr/bin/systemctl ]; then
279
   systemctl stop rxapid.service
279
   systemctl stop rxapid.service
280
   # Remove misc
280
   # Remove misc
281
   rm -f /etc/systemd/system/rxapid.service
281
   rm -f /etc/systemd/system/rxapid.service
282
   rm -f /etc/ld.so.conf.d/ooRexx.conf
283
   ldconfig
282
elif [ -x /sbin/insserv ]; then
284
elif [ -x /sbin/insserv ]; then
283
   service rxapid stop
285
   service rxapid stop
284
   # try insserv first (for Suse)
286
   # try insserv first (for Suse)
285
   insserv -f rxapid
287
   insserv -f rxapid
286
   # Remove the rxapi daemon
288
   # Remove the rxapi daemon
287
   rm -f /etc/init.d/rxapid
289
   rm -f /etc/init.d/rxapid
288
   # Remove misc
290
   # Remove misc
289
   rm -f %{_bindir}/rexxtry.rex
291
   rm -f %{_bindir}/rexxtry.rex
292
   rm -f /etc/ld.so.conf.d/ooRexx.conf
293
   ldconfig
290
else
294
else
291
   service rxapid stop
295
   service rxapid stop
292
   # else, try good old chkconfig
296
   # else, try good old chkconfig
293
   chkconfig --del rxapid
297
   chkconfig --del rxapid
294
   # Remove the rxapi daemon
298
   # Remove the rxapi daemon
295
   rm -f /etc/init.d/rxapid
299
   rm -f /etc/init.d/rxapid
296
   # Remove misc
300
   # Remove misc
297
   rm -f %{_bindir}/rexxtry.rex
301
   rm -f %{_bindir}/rexxtry.rex
302
   rm -f /etc/ld.so.conf.d/ooRexx.conf
303
   ldconfig
298
fi
304
fi
299
305
300
#******************************************************************************
306
#******************************************************************************
301
%postun
307
%postun
302
#******************************************************************************
308
#******************************************************************************

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks