added apt-cache.service file
This commit is contained in:
parent
8c7f02a016
commit
efbe5b556d
1 changed files with 16 additions and 0 deletions
16
.config/systemd/user/apt-cache.service
Normal file
16
.config/systemd/user/apt-cache.service
Normal file
|
@ -0,0 +1,16 @@
|
|||
[Unit]
|
||||
Description=apt-cache
|
||||
ConditionPathExists=/var/run/docker.pid
|
||||
ConditionPathExists=/var/run/docker.sock
|
||||
ConditionPathIsDirectory=/var/run/docker
|
||||
|
||||
[Service]
|
||||
TimeoutStartSec=0
|
||||
#ExecStartPre=/usr/bin/docker stop apt-cache
|
||||
ExecStartPre=/usr/bin/docker pull schtobia/apt_cacher_ng
|
||||
ExecStop=/usr/bin/docker stop -t 2 %n
|
||||
ExecStart=/usr/bin/docker run -d --rm -p 3142:3142 --volume aptcache-cache:/var/cache/apt-cacher-ng --volume aptcache-log:/var/log/apt-cacher-ng --name %n --hostname apt-cache schtobia/apt_cacher_ng
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
Loading…
Reference in a new issue