Добавлен restart: unless-stopped
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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(() -> {
|
||||||
|
|||||||
Reference in New Issue
Block a user