[vtun] update support for systemd (#737195) attempt #2

Gabriel L. Somlo somlo at fedoraproject.org
Sat Sep 10 14:03:04 UTC 2011


commit e9e197c5fb5c54f2d8ab58659974d798f3e99610
Author: Gabriel L. Somlo <somlo at hedwig.ini.cmu.edu>
Date:   Sat Sep 10 10:02:52 2011 -0400

    update support for systemd (#737195) attempt #2

 vtun.spec |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/vtun.spec b/vtun.spec
index 86d2d5d..4d4c20a 100644
--- a/vtun.spec
+++ b/vtun.spec
@@ -57,14 +57,17 @@ fi
 if [ $1 -eq 0 ]; then
 	/sbin/service vtund stop >/dev/null 2>&1 || :
 	/sbin/chkconfig --del vtund || :
-	/bin/systemctl disable vtund.service >/dev/null 2>&1 || :
-	/bin/systemctl stop vtund.service >/dev/null 2>&1 || :
+	/bin/systemctl disable vtun.socket >/dev/null 2>&1 || :
+	/bin/systemctl stop vtun.socket >/dev/null 2>&1 || :
+	/bin/systemctl disable vtun.service >/dev/null 2>&1 || :
+	/bin/systemctl stop vtun.service >/dev/null 2>&1 || :
 fi
 
 %postun
 if [ $1 -eq 1 ]; then
 	/sbin/service vtund condrestart >/dev/null 2>&1 || :
-	/bin/systemctl try-restart vtund.service >/dev/null 2>&1 || :
+	/bin/systemctl try-restart vtun.socket >/dev/null 2>&1 || :
+	/bin/systemctl try-restart vtun.service >/dev/null 2>&1 || :
 fi
 
 %files
@@ -73,7 +76,8 @@ fi
 %config(noreplace) %{_sysconfdir}/vtund.conf
 %config(noreplace) %{_sysconfdir}/xinetd.d/vtun
 %{_initrddir}/vtund
-/lib/systemd/system/vtund.service
+/lib/systemd/system/vtun.socket
+/lib/systemd/system/vtun.service
 %{_sbindir}/vtund
 %dir %{_localstatedir}/log/vtund
 %ghost %dir %{_localstatedir}/lock/vtund


More information about the scm-commits mailing list