diff --git a/Makefile b/Makefile index ee4f2ff..d6fa941 100644 --- a/Makefile +++ b/Makefile @@ -94,7 +94,12 @@ install: tar: .podman-from-container rm -f $(ASSET_DIR).tar.gz mkdir -p $(ASSET_DIR)/usr/lib/systemd/system + mkdir -p $(ASSET_DIR)/usr/lib/systemd/user cp -f conf/systemd/podman-restart.service $(ASSET_DIR)/usr/lib/systemd/system/podman-restart.service + cp -f conf/systemd/podman.service $(ASSET_DIR)/usr/lib/systemd/system/podman.service + cp -f conf/systemd/podman.socket $(ASSET_DIR)/usr/lib/systemd/system/podman.socket + cp -f conf/systemd/podman.service $(ASSET_DIR)/usr/lib/systemd/user/podman.service + cp -f conf/systemd/podman.socket $(ASSET_DIR)/usr/lib/systemd/user/podman.socket tar -C $(ASSET_DIR)/.. -czvf $(ASSET_DIR).tar.gz $(ASSET_NAME) .podman-from-container: IMAGE_ROOTFS = $(BUILD_DIR)/images/podman/linux_$(ARCH) diff --git a/conf/systemd/podman.service b/conf/systemd/podman.service new file mode 100644 index 0000000..a4dbc32 --- /dev/null +++ b/conf/systemd/podman.service @@ -0,0 +1,15 @@ +[Unit] +Description=Podman API Service +Requires=podman.socket +After=podman.socket +Documentation=man:podman-system-service(1) +StartLimitIntervalSec=0 + +[Service] +Type=exec +KillMode=process +Environment=LOGGING="--log-level=info" +ExecStart=podman $LOGGING system service + +[Install] +WantedBy=default.target \ No newline at end of file diff --git a/conf/systemd/podman.socket b/conf/systemd/podman.socket new file mode 100644 index 0000000..33ec898 --- /dev/null +++ b/conf/systemd/podman.socket @@ -0,0 +1,10 @@ +[Unit] +Description=Podman API Socket +Documentation=man:podman-system-service(1) + +[Socket] +ListenStream=%t/podman/podman.sock +SocketMode=0660 + +[Install] +WantedBy=sockets.target \ No newline at end of file