From e9e197c5fb5c54f2d8ab58659974d798f3e99610 Mon Sep 17 00:00:00 2001 From: Gabriel L. Somlo Date: Sep 10 2011 14:02:52 +0000 Subject: update support for systemd (#737195) attempt #2 --- 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