diff --git a/pbs-mom.service b/pbs-mom.service new file mode 100644 index 0000000..e37aeba --- /dev/null +++ b/pbs-mom.service @@ -0,0 +1,10 @@ +[Unit] +Description=pbs-mom +After=syslog.target network.target trqauthd.service + +[Service] +Type=forking +ExecStart=/usr/sbin/pbs_mom + +[Install] +WantedBy=multi-user.target diff --git a/pbs-sched.service b/pbs-sched.service new file mode 100644 index 0000000..d1bd0e0 --- /dev/null +++ b/pbs-sched.service @@ -0,0 +1,10 @@ +[Unit] +Description=pbs-sched +After=syslog.target network.target trqauthd.service + +[Service] +Type=forking +ExecStart=/usr/sbin/pbs_sched + +[Install] +WantedBy=multi-user.target diff --git a/pbs-server.service b/pbs-server.service new file mode 100644 index 0000000..7040a91 --- /dev/null +++ b/pbs-server.service @@ -0,0 +1,10 @@ +[Unit] +Description=pbs-server +After=syslog.target network.target trqauthd.service + +[Service] +Type=forking +ExecStart=/usr/sbin/pbs_server + +[Install] +WantedBy=multi-user.target diff --git a/torque.spec b/torque.spec index 0534dbb..74665a0 100644 --- a/torque.spec +++ b/torque.spec @@ -372,7 +372,7 @@ CFLAGS="%{optflags} -Wno-overlength-strings -DUSE_INTERP_RESULT -DUSE_INTERP_ERR make %{?_smp_mflags} -for daemon in pbs_mom pbs_sched pbs_server +for daemon in pbs_mom pbs_sched pbs_server trqauthd do sed -i -e 's|^PBS_HOME=.*|PBS_HOME=%{torquehomedir}|' \ -e 's|^PBS_DAEMON=.*|PBS_DAEMON=%{_sbindir}/'$daemon'|' \ @@ -394,6 +394,7 @@ 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/trqauthd %{buildroot}%{_initrddir}/trqauthd %if %{build_gui} # This is really trivial, but cleans up an rpmlint warning diff --git a/trqauthd.service b/trqauthd.service new file mode 100644 index 0000000..c581da3 --- /dev/null +++ b/trqauthd.service @@ -0,0 +1,10 @@ +[Unit] +Description=trqauthd +After=syslog.target network.target + +[Service] +Type=forking +ExecStart=/usr/sbin/trqauthd + +[Install] +WantedBy=multi-user.target