Добавлен restart: unless-stopped

This commit is contained in:
serega6531
2019-11-21 15:37:12 +03:00
parent 8f4889c9e2
commit 039856615f
2 changed files with 3 additions and 3 deletions

View File

@@ -17,7 +17,7 @@ services:
image: packmate-app:v1 image: packmate-app:v1
depends_on: depends_on:
- db - db
restart: on-failure restart: unless-stopped
db: db:
container_name: packmate-db container_name: packmate-db
build: build:
@@ -29,4 +29,4 @@ services:
PACKMATE_DB_DB: ${PACKMATE_DB_NAME} PACKMATE_DB_DB: ${PACKMATE_DB_NAME}
network_mode: "host" network_mode: "host"
image: packmate-db:v1 image: packmate-db:v1
restart: always restart: unless-stopped

View File

@@ -61,7 +61,7 @@ public class PcapWorker implements PacketListener {
} }
public void start() throws PcapNativeException { public void start() throws PcapNativeException {
System.out.println("Using interface " + device.getName()); log.info("Using interface " + device.getName());
pcap = device.openLive(65536, PcapNetworkInterface.PromiscuousMode.PROMISCUOUS, 100); pcap = device.openLive(65536, PcapNetworkInterface.PromiscuousMode.PROMISCUOUS, 100);
executorService.execute(() -> { executorService.execute(() -> {