Skip to content

Commit

Permalink
Merge pull request #100 from koh-osug/master
Browse files Browse the repository at this point in the history
added podman services
  • Loading branch information
mgoltzsche authored Aug 20, 2024
2 parents 53062d9 + e8116dd commit 1815682
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
15 changes: 15 additions & 0 deletions conf/systemd/podman.service
Original file line number Diff line number Diff line change
@@ -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
10 changes: 10 additions & 0 deletions conf/systemd/podman.socket
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 1815682

Please sign in to comment.