]> git.pld-linux.org Git - packages/docker.git/commitdiff
register systemd service auto/th/docker-1.12.0-3
authorElan Ruusamäe <glen@delfi.ee>
Thu, 18 Aug 2016 12:10:02 +0000 (15:10 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Thu, 18 Aug 2016 12:10:02 +0000 (15:10 +0300)
docker.spec

index c7c5d560c5b3f655e88a0f68459f1b4cff1fb91b..84e0405733d2bf93bc8e98ba44da078b7ed104c7 100644 (file)
@@ -17,6 +17,7 @@ Version:      1.12.0
 Release:       3
 License:       Apache v2.0
 Group:         Applications/System
+# https://github.com/docker/docker/releases
 Source0:       https://github.com/docker/docker/archive/v%{version}/%{name}-%{version}.tar.gz
 # Source0-md5: 7990440b022e93f3e7036bcfd12970f2
 Source1:       https://github.com/opencontainers/runc/archive/%{runc_commit}/runc-%{runc_commit}.tar.gz
@@ -204,17 +205,20 @@ cp -a contrib/syntax/vim/* $RPM_BUILD_ROOT%{_vimdatadir}
 %post
 /sbin/chkconfig --add %{name}
 %service -n %{name} restart
+%systemd_post %{name}.service
 
 %preun
 if [ "$1" = "0" ]; then
        %service -q %{name} stop
        /sbin/chkconfig --del %{name}
 fi
+%systemd_preun %{name}.service
 
 %postun
 if [ "$1" = "0" ]; then
        %groupremove docker
 fi
+%systemd_reload
 
 %clean
 rm -rf $RPM_BUILD_ROOT
This page took 0.030977 seconds and 4 git commands to generate.