lets make the service names the old names since its been that
way for ages
This commit is contained in:
parent
758662985c
commit
b93ab416d7
54
torque.spec
54
torque.spec
@ -80,9 +80,9 @@ Source4: xpbs.png
|
|||||||
Source5: xpbsmon.png
|
Source5: xpbsmon.png
|
||||||
Source6: README.Fedora
|
Source6: README.Fedora
|
||||||
Source8: config
|
Source8: config
|
||||||
Source20: pbs-mom.service
|
Source20: pbs_mom.service
|
||||||
Source21: pbs-sched.service
|
Source21: pbs_sched.service
|
||||||
Source22: pbs-server.service
|
Source22: pbs_server.service
|
||||||
Source23: trqauthd.service
|
Source23: trqauthd.service
|
||||||
# Feb 3rd 2011, I've sent a mail upstream to request the re-inclusion
|
# Feb 3rd 2011, I've sent a mail upstream to request the re-inclusion
|
||||||
# of the OpenPBS license file in distribution.
|
# of the OpenPBS license file in distribution.
|
||||||
@ -408,9 +408,9 @@ install -p -m 644 %{SOURCE23} %{buildroot}%{_unitdir}/
|
|||||||
%else
|
%else
|
||||||
# install initscripts
|
# install initscripts
|
||||||
mkdir -p %{buildroot}%{_initrddir}
|
mkdir -p %{buildroot}%{_initrddir}
|
||||||
install -p -m 755 contrib/init.d/pbs_mom %{buildroot}%{_initrddir}/pbs-mom
|
install -p -m 755 contrib/init.d/pbs_mom %{buildroot}%{_initrddir}/pbs_mom
|
||||||
install -p -m 755 contrib/init.d/pbs_sched %{buildroot}%{_initrddir}/pbs-sched
|
install -p -m 755 contrib/init.d/pbs_sched %{buildroot}%{_initrddir}/pbs_sched
|
||||||
install -p -m 755 contrib/init.d/pbs_server %{buildroot}%{_initrddir}/pbs-server
|
install -p -m 755 contrib/init.d/pbs_server %{buildroot}%{_initrddir}/pbs_server
|
||||||
install -p -m 755 contrib/init.d/trqauthd %{buildroot}%{_initrddir}/trqauthd
|
install -p -m 755 contrib/init.d/trqauthd %{buildroot}%{_initrddir}/trqauthd
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -567,52 +567,52 @@ fi
|
|||||||
|
|
||||||
%post mom
|
%post mom
|
||||||
%if 0%{?rhel} >= 7 || 0%{?fedora} > 0
|
%if 0%{?rhel} >= 7 || 0%{?fedora} > 0
|
||||||
%systemd_post pbs-mom.service
|
%systemd_post pbs_mom.service
|
||||||
%else
|
%else
|
||||||
/sbin/chkconfig --add pbs-mom
|
/sbin/chkconfig --add pbs_mom
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%preun mom
|
%preun mom
|
||||||
%if 0%{?rhel} >= 7 || 0%{?fedora} > 0
|
%if 0%{?rhel} >= 7 || 0%{?fedora} > 0
|
||||||
%systemd_preun pbs-mom.service
|
%systemd_preun pbs_mom.service
|
||||||
%else
|
%else
|
||||||
if [ $1 -eq 0 ]; then
|
if [ $1 -eq 0 ]; then
|
||||||
/sbin/service pbs-mom stop >/dev/null 2>&1
|
/sbin/service pbs_mom stop >/dev/null 2>&1
|
||||||
/sbin/chkconfig --del pbs-mom
|
/sbin/chkconfig --del pbs_mom
|
||||||
fi
|
fi
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%post scheduler
|
%post scheduler
|
||||||
%if 0%{?rhel} >= 7 || 0%{?fedora} > 0
|
%if 0%{?rhel} >= 7 || 0%{?fedora} > 0
|
||||||
%systemd_post pbs-sched.service
|
%systemd_post pbs_sched.service
|
||||||
%else
|
%else
|
||||||
/sbin/chkconfig --add pbs-sched
|
/sbin/chkconfig --add pbs_sched
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%preun scheduler
|
%preun scheduler
|
||||||
%if 0%{?rhel} >= 7 || 0%{?fedora} > 0
|
%if 0%{?rhel} >= 7 || 0%{?fedora} > 0
|
||||||
%systemd_preun pbs-sched.service
|
%systemd_preun pbs_sched.service
|
||||||
%else
|
%else
|
||||||
if [ $1 -eq 0 ]; then
|
if [ $1 -eq 0 ]; then
|
||||||
/sbin/service pbs-sched stop >/dev/null 2>&1
|
/sbin/service pbs_sched stop >/dev/null 2>&1
|
||||||
/sbin/chkconfig --del pbs-sched
|
/sbin/chkconfig --del pbs_sched
|
||||||
fi
|
fi
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%post server
|
%post server
|
||||||
%if 0%{?rhel} >= 7 || 0%{?fedora} > 0
|
%if 0%{?rhel} >= 7 || 0%{?fedora} > 0
|
||||||
%systemd_post pbs-server.service
|
%systemd_post pbs_server.service
|
||||||
%else
|
%else
|
||||||
/sbin/chkconfig --add pbs-server
|
/sbin/chkconfig --add pbs_server
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%preun server
|
%preun server
|
||||||
%if 0%{?rhel} >= 7 || 0%{?fedora} > 0
|
%if 0%{?rhel} >= 7 || 0%{?fedora} > 0
|
||||||
%systemd_preun pbs-server.service
|
%systemd_preun pbs_server.service
|
||||||
%else
|
%else
|
||||||
if [ $1 -eq 0 ]; then
|
if [ $1 -eq 0 ]; then
|
||||||
/sbin/service pbs-server stop >/dev/null 2>&1
|
/sbin/service pbs_server stop >/dev/null 2>&1
|
||||||
/sbin/chkconfig --del pbs-server
|
/sbin/chkconfig --del pbs_server
|
||||||
fi
|
fi
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -775,9 +775,9 @@ fi
|
|||||||
%{_sbindir}/pbs_demux
|
%{_sbindir}/pbs_demux
|
||||||
%{_bindir}/pbs_track
|
%{_bindir}/pbs_track
|
||||||
%if 0%{?rhel} >= 7 || 0%{?fedora} > 0
|
%if 0%{?rhel} >= 7 || 0%{?fedora} > 0
|
||||||
%{_unitdir}/pbs-mom.service
|
%{_unitdir}/pbs_mom.service
|
||||||
%else
|
%else
|
||||||
%{_initrddir}/pbs-mom
|
%{_initrddir}/pbs_mom
|
||||||
%endif
|
%endif
|
||||||
%if %{use_rcp}
|
%if %{use_rcp}
|
||||||
%attr(4755, root, root) %{_sbindir}/pbs_rcp
|
%attr(4755, root, root) %{_sbindir}/pbs_rcp
|
||||||
@ -801,9 +801,9 @@ fi
|
|||||||
%attr(0755, root, root) %{_sbindir}/pbs_sched
|
%attr(0755, root, root) %{_sbindir}/pbs_sched
|
||||||
%{_sbindir}/qschedd
|
%{_sbindir}/qschedd
|
||||||
%if 0%{?rhel} >= 7 || 0%{?fedora} > 0
|
%if 0%{?rhel} >= 7 || 0%{?fedora} > 0
|
||||||
%{_unitdir}/pbs-sched.service
|
%{_unitdir}/pbs_sched.service
|
||||||
%else
|
%else
|
||||||
%{_initrddir}/pbs-sched
|
%{_initrddir}/pbs_sched
|
||||||
%endif
|
%endif
|
||||||
%dir %{torquehomedir}/sched_priv
|
%dir %{torquehomedir}/sched_priv
|
||||||
%config(noreplace) %{torquehomedir}/sched_priv/*
|
%config(noreplace) %{torquehomedir}/sched_priv/*
|
||||||
@ -826,10 +826,10 @@ fi
|
|||||||
%attr(0755, root, root) %{_sbindir}/trqauthd
|
%attr(0755, root, root) %{_sbindir}/trqauthd
|
||||||
%{_sbindir}/qserverd
|
%{_sbindir}/qserverd
|
||||||
%if 0%{?rhel} >= 7 || 0%{?fedora} > 0
|
%if 0%{?rhel} >= 7 || 0%{?fedora} > 0
|
||||||
%{_unitdir}/pbs-server.service
|
%{_unitdir}/pbs_server.service
|
||||||
%{_unitdir}/trqauthd.service
|
%{_unitdir}/trqauthd.service
|
||||||
%else
|
%else
|
||||||
%{_initrddir}/pbs-server
|
%{_initrddir}/pbs_server
|
||||||
%{_initrddir}/trqauthd
|
%{_initrddir}/trqauthd
|
||||||
%endif
|
%endif
|
||||||
%dir %{_var}/log/torque/server_logs
|
%dir %{_var}/log/torque/server_logs
|
||||||
|
Loading…
Reference in New Issue
Block a user