dmlb2000 pushed to torque (f20). "here's some service scripts for systemd"
notifications at fedoraproject.org
notifications at fedoraproject.org
Sat May 16 16:59:57 UTC 2015
From 9334fafdce41a51fbfa79e5a463d0a1491291e0f Mon Sep 17 00:00:00 2001
From: David Brown <dmlb2000 at gmail.com>
Date: Sat, 2 May 2015 07:45:49 -0700
Subject: here's some service scripts for systemd
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
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/torque.git/commit/?h=f20&id=9334fafdce41a51fbfa79e5a463d0a1491291e0f
More information about the scm-commits
mailing list