Author: jajcus                       Date: Wed Jul  4 19:40:49 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- systemd service file adder
- Release: 2.2

---- Files affected:
packages/openais:
   openais.spec (1.23 -> 1.24) , openais.service (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/openais/openais.spec
diff -u packages/openais/openais.spec:1.23 packages/openais/openais.spec:1.24
--- packages/openais/openais.spec:1.23  Wed Jul  4 18:14:18 2012
+++ packages/openais/openais.spec       Wed Jul  4 21:40:43 2012
@@ -8,12 +8,13 @@
 Summary(pl.UTF-8):     Środowisko klastra opartego na standardach openais
 Name:          openais
 Version:       1.1.4
-Release:       2.1
+Release:       2.2
 License:       BSD
 Group:         Base
 Source0:       
ftp://ftp:[email protected]/downloads/%{name}-%{version}/%{name}-%{version}.tar.gz
 # Source0-md5: e500ad3c49fdc45d8653f864e80ed82c
 Source1:       %{name}.init
+Source2:       %{name}.service
 URL:           http://www.openais.org/
 BuildRequires: autoconf >= 2.61
 BuildRequires: automake
@@ -98,7 +99,7 @@
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
+install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,%{systemdunitdir}}
 
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
@@ -111,6 +112,7 @@
 %{__rm} -r $RPM_BUILD_ROOT/usr/share/doc/openais
 
 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
+install %{SOURCE2} $RPM_BUILD_ROOT%{systemdunitdir}/%{name}.service
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -148,6 +150,7 @@
 %attr(755,root,root) %{_sbindir}/openais-instantiate
 %verify(not md5 mtime size) %config(noreplace) %{_sysconfdir}/corosync/amf.conf
 %attr(754,root,root) /etc/rc.d/init.d/openais
+%{systemdunitdir}/%{name}.service
 %attr(755,root,root) %{_libdir}/lcrso/openaisserviceenable.lcrso
 %attr(755,root,root) %{_libdir}/lcrso/service_*.lcrso
 %{_mandir}/man5/amf.conf.5*
@@ -205,6 +208,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.24  2012/07/04 19:40:43  jajcus
+- systemd service file adder
+- Release: 2.2
+
 Revision 1.23  2012/07/04 16:14:18  jajcus
 - PLD init script added
 

================================================================
Index: packages/openais/openais.service
diff -u /dev/null packages/openais/openais.service:1.1
--- /dev/null   Wed Jul  4 21:40:49 2012
+++ packages/openais/openais.service    Wed Jul  4 21:40:43 2012
@@ -0,0 +1,26 @@
+[Unit]
+Description=OpenAIS Cluster Framework
+ConditionKernelCommandLine=!nocluster
+Requires=network.target
+After=network.target
+Before=corosync.service
+Conflicts=corosync.service
+Names=corosync-stack.service
+
+[Install]
+WantedBy=corosync.target
+
+[Service]
+Type=forking
+PIDFile=/var/run/corosync.pid
+KillMode=process
+SysVStartPriority=21
+EnvironmentFile=-/etc/sysconfig/openais
+ExecStart=/usr/sbin/aisexec
+
+# Pacemaker can only exit after all managed services have shut down
+# A HA database could conceivably take even longer than this 
+TimeoutSec=30min
+
+# Restart options include: no, on-success, on-failure, on-abort or always
+Restart=on-failure
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/packages/openais/openais.spec?r1=1.23&r2=1.24

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to