lets add the trqauthd service start bits

This commit is contained in:
David Brown 2015-06-13 17:02:08 -07:00
parent d4f23964d9
commit 9b4b8503e0

View File

@ -603,17 +603,22 @@ fi
%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
%systemd_post trqauthd.service
%else %else
/sbin/chkconfig --add pbs_server /sbin/chkconfig --add pbs_server
/sbin/chkconfig --add trqauthd
%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
%systemd_preun trqauthd.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/service trqauthd stop >/dev/null 2>&1
/sbin/chkconfig --del pbs_server /sbin/chkconfig --del pbs_server
/sbin/chkconfig --del trqauthd
fi fi
%endif %endif
@ -634,12 +639,6 @@ fi
%config(noreplace) %{_sysconfdir}/torque/pbs_environment %config(noreplace) %{_sysconfdir}/torque/pbs_environment
%config(noreplace) %{_sysconfdir}/torque/server_name %config(noreplace) %{_sysconfdir}/torque/server_name
%{_mandir}/man1/pbs.1.* %{_mandir}/man1/pbs.1.*
%attr(0755, root, root) %{_sbindir}/trqauthd
%if 0%{?rhel} >= 7 || 0%{?fedora} > 0
%{_unitdir}/trqauthd.service
%else
%{_initrddir}/trqauthd
%endif
%files client %files client
%defattr(-, root, root, -) %defattr(-, root, root, -)
@ -836,6 +835,12 @@ fi
%else %else
%{_initrddir}/pbs_server %{_initrddir}/pbs_server
%endif %endif
%attr(0755, root, root) %{_sbindir}/trqauthd
%if 0%{?rhel} >= 7 || 0%{?fedora} > 0
%{_unitdir}/trqauthd.service
%else
%{_initrddir}/trqauthd
%endif
%dir %{_var}/log/torque/server_logs %dir %{_var}/log/torque/server_logs
%{torquehomedir}/server_logs %{torquehomedir}/server_logs
%{torquehomedir}/server_priv %{torquehomedir}/server_priv