From 7915603b740a4d0f88e6eb9300d496005bbf086d Mon Sep 17 00:00:00 2001 From: David Brown Date: Sun, 17 May 2015 18:43:58 -0700 Subject: [PATCH] I don't like _ in my service names... --- torque.spec | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/torque.spec b/torque.spec index d8e2ed6..f2478b5 100644 --- a/torque.spec +++ b/torque.spec @@ -408,9 +408,9 @@ install -p -m 644 %{SOURCE23} %{buildroot}%{_unitdir}/ %else # install initscripts 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_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_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_server %{buildroot}%{_initrddir}/pbs-server install -p -m 755 contrib/init.d/trqauthd %{buildroot}%{_initrddir}/trqauthd %endif @@ -569,7 +569,7 @@ fi %if 0%{?rhel} >= 7 || 0%{?fedora} > 0 %systemd_post pbs-mom.service %else -/sbin/chkconfig --add pbs_mom +/sbin/chkconfig --add pbs-mom %endif %preun mom @@ -577,8 +577,8 @@ fi %systemd_preun pbs-mom.service %else if [ $1 -eq 0 ]; then - /sbin/service pbs_mom stop >/dev/null 2>&1 - /sbin/chkconfig --del pbs_mom + /sbin/service pbs-mom stop >/dev/null 2>&1 + /sbin/chkconfig --del pbs-mom fi %endif @@ -586,7 +586,7 @@ fi %if 0%{?rhel} >= 7 || 0%{?fedora} > 0 %systemd_post pbs-sched.service %else -/sbin/chkconfig --add pbs_sched +/sbin/chkconfig --add pbs-sched %endif %preun scheduler @@ -594,8 +594,8 @@ fi %systemd_preun pbs-sched.service %else if [ $1 -eq 0 ]; then - /sbin/service pbs_sched stop >/dev/null 2>&1 - /sbin/chkconfig --del pbs_sched + /sbin/service pbs-sched stop >/dev/null 2>&1 + /sbin/chkconfig --del pbs-sched fi %endif @@ -603,7 +603,7 @@ fi %if 0%{?rhel} >= 7 || 0%{?fedora} > 0 %systemd_post pbs-server.service %else -/sbin/chkconfig --add pbs_server +/sbin/chkconfig --add pbs-server %endif %preun server @@ -611,8 +611,8 @@ fi %systemd_preun pbs-server.service %else if [ $1 -eq 0 ]; then - /sbin/service pbs_server stop >/dev/null 2>&1 - /sbin/chkconfig --del pbs_server + /sbin/service pbs-server stop >/dev/null 2>&1 + /sbin/chkconfig --del pbs-server fi %endif @@ -775,7 +775,7 @@ fi %if 0%{?rhel} >= 7 || 0%{?fedora} > 0 %{_unitdir}/pbs-mom.service %else -%{_initrddir}/pbs_mom +%{_initrddir}/pbs-mom %endif %if %{use_rcp} %attr(4755, root, root) %{_sbindir}/pbs_rcp @@ -801,7 +801,7 @@ fi %if 0%{?rhel} >= 7 || 0%{?fedora} > 0 %{_unitdir}/pbs-sched.service %else -%{_initrddir}/pbs_sched +%{_initrddir}/pbs-sched %endif %dir %{torquehomedir}/sched_priv %config(noreplace) %{torquehomedir}/sched_priv/* @@ -827,7 +827,7 @@ fi %{_unitdir}/pbs-server.service %{_unitdir}/trqauthd.service %else -%{_initrddir}/pbs_server +%{_initrddir}/pbs-server %{_initrddir}/trqauthd %endif %dir %{_var}/log/torque/server_logs