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
%if 0%{?rhel} >= 7 || 0%{?fedora} > 0
%systemd_post pbs_server.service
%systemd_post trqauthd.service
%else
/sbin/chkconfig --add pbs_server
/sbin/chkconfig --add trqauthd
%endif
%preun server
%if 0%{?rhel} >= 7 || 0%{?fedora} > 0
%systemd_preun pbs_server.service
%systemd_preun trqauthd.service
%else
if [ $1 -eq 0 ]; then
/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 trqauthd
fi
%endif
@ -634,12 +639,6 @@ fi
%config(noreplace) %{_sysconfdir}/torque/pbs_environment
%config(noreplace) %{_sysconfdir}/torque/server_name
%{_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
%defattr(-, root, root, -)
@ -836,6 +835,12 @@ fi
%else
%{_initrddir}/pbs_server
%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
%{torquehomedir}/server_logs
%{torquehomedir}/server_priv