From c3d946be380d3b026f582c21eaec2488d29973d4 Mon Sep 17 00:00:00 2001 From: Vitezslav Crhonek Date: May 28 2012 10:35:16 +0000 Subject: Rename service file --- diff --git a/openwsman.service b/openwsman.service deleted file mode 100644 index 142cd5b..0000000 --- a/openwsman.service +++ /dev/null @@ -1,12 +0,0 @@ -[Unit] -Description=Openwsman WS-Management Service -After=syslog.target - -[Service] -Type=forking -ExecStart=/usr/sbin/openwsmand -ExecStartPre=/etc/openwsman/owsmantestcert.sh -PIDFile=/var/run/wsmand.pid - -[Install] -WantedBy=multi-user.target diff --git a/openwsman.spec b/openwsman.spec index 2e91f68..fc995db 100644 --- a/openwsman.spec +++ b/openwsman.spec @@ -15,7 +15,7 @@ BuildRequires: perl-devel pkgconfig openssl-devel BuildRequires: cmake BuildRequires: systemd-units Version: 2.2.7 -Release: 4%{?dist} +Release: 5%{?dist} Url: http://www.openwsman.org/ License: BSD Group: Applications/System @@ -24,7 +24,7 @@ Source: http://downloads.sourceforge.net/project/openwsman/%{name}/%{ver # help2man generated manpage for openwsmand binary Source1: openwsmand.8.gz # service file for systemd -Source2: openwsman.service +Source2: openwsmand.service # script for testing presence of the certificates in ExecStartPre Source3: owsmantestcert.sh Patch0: %{name}-sitelibdir.patch @@ -181,7 +181,7 @@ mkdir -p %{buildroot}%{_sysconfdir}/init.d install -m 644 etc/openwsman.conf %{buildroot}/%{_sysconfdir}/openwsman install -m 644 etc/openwsman_client.conf %{buildroot}/%{_sysconfdir}/openwsman mkdir -p $RPM_BUILD_ROOT%{_unitdir} -install -p -m 644 %{SOURCE2} %{buildroot}/%{_unitdir}/openwsman.service +install -p -m 644 %{SOURCE2} %{buildroot}/%{_unitdir}/openwsmand.service install -m 644 etc/ssleay.cnf %{buildroot}/%{_sysconfdir}/openwsman install -p -m 755 %{SOURCE3} %{buildroot}/%{_sysconfdir}/openwsman # install manpage @@ -208,8 +208,8 @@ fi %preun server if [ $1 = 0 ] ; then - /bin/systemctl --no-reload disable openwsman.service > /dev/null 2>&1 || : - /bin/systemctl stop openwsman.service > /dev/null 2>&1 || : + /bin/systemctl --no-reload disable openwsmand.service > /dev/null 2>&1 || : + /bin/systemctl stop openwsmand.service > /dev/null 2>&1 || : fi %postun server @@ -217,7 +217,7 @@ rm -f /var/log/wsmand.log /bin/systemctl daemon-reload >/dev/null 2>&1 || : if [ "$1" -ge "1" ] ; then - /bin/systemctl try-restart openwsman.service >/dev/null 2>&1 || : + /bin/systemctl try-restart openwsmand.service >/dev/null 2>&1 || : fi /sbin/ldconfig @@ -271,7 +271,7 @@ fi %attr(0755,root,root) %{_sysconfdir}/openwsman/owsmangencert.sh %attr(0755,root,root) %{_sysconfdir}/openwsman/owsmantestcert.sh %config(noreplace) %{_sysconfdir}/pam.d/openwsman -%{_unitdir}/openwsman.service +%{_unitdir}/openwsmand.service %dir %{_libdir}/openwsman %dir %{_libdir}/openwsman/authenticators %{_libdir}/openwsman/authenticators/*.so @@ -292,6 +292,9 @@ fi %changelog +* Mon May 28 2012 Vitezslav Crhonek - 2.2.7-5 +- Rename service file + * Wed May 23 2012 Vitezslav Crhonek - 2.2.7-4 - Add systemd support diff --git a/openwsmand.service b/openwsmand.service new file mode 100644 index 0000000..142cd5b --- /dev/null +++ b/openwsmand.service @@ -0,0 +1,12 @@ +[Unit] +Description=Openwsman WS-Management Service +After=syslog.target + +[Service] +Type=forking +ExecStart=/usr/sbin/openwsmand +ExecStartPre=/etc/openwsman/owsmantestcert.sh +PIDFile=/var/run/wsmand.pid + +[Install] +WantedBy=multi-user.target