here's some service scripts for systemd

This commit is contained in:
David Brown 2015-05-02 07:45:49 -07:00
parent e05f8fc6cd
commit 9334fafdce
5 changed files with 42 additions and 1 deletions

10
pbs-mom.service Normal file
View File

@ -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

10
pbs-sched.service Normal file
View File

@ -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

10
pbs-server.service Normal file
View File

@ -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

View File

@ -372,7 +372,7 @@ CFLAGS="%{optflags} -Wno-overlength-strings -DUSE_INTERP_RESULT -DUSE_INTERP_ERR
make %{?_smp_mflags} make %{?_smp_mflags}
for daemon in pbs_mom pbs_sched pbs_server for daemon in pbs_mom pbs_sched pbs_server trqauthd
do do
sed -i -e 's|^PBS_HOME=.*|PBS_HOME=%{torquehomedir}|' \ sed -i -e 's|^PBS_HOME=.*|PBS_HOME=%{torquehomedir}|' \
-e 's|^PBS_DAEMON=.*|PBS_DAEMON=%{_sbindir}/'$daemon'|' \ -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_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
%if %{build_gui} %if %{build_gui}
# This is really trivial, but cleans up an rpmlint warning # This is really trivial, but cleans up an rpmlint warning

10
trqauthd.service Normal file
View File

@ -0,0 +1,10 @@
[Unit]
Description=trqauthd
After=syslog.target network.target
[Service]
Type=forking
ExecStart=/usr/sbin/trqauthd
[Install]
WantedBy=multi-user.target