Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add WIP draft-example.nsenter (an systemd system service example configured with User=) #22

Merged
merged 1 commit into from
Nov 28, 2024

Conversation

eriksjolund
Copy link
Owner

@eriksjolund eriksjolund commented Nov 24, 2024

Add systemd system service example (configured with User=)

Currently work-in-progress

The implementation makes use of

ExecStart=bash -c "exec nsenter \
    --preserve-credentials \
    --net=/proc/$(cat $XDG_RUNTIME_DIR/containers/networks/aardvark-dns/aardvark.pid)/ns/net \
    --user=/proc/$(cat $XDG_RUNTIME_DIR/libpod/tmp/pause.pid)/ns/user \
    --mount=/proc/$(cat $XDG_RUNTIME_DIR/libpod/tmp/pause.pid)/ns/mnt \
    /usr/local/bin/caddy run --environ --config /srv/caddy/Caddyfile"

Fixes: #21

@eriksjolund eriksjolund force-pushed the add-systemd-system-service-User=-example branch 4 times, most recently from 565842f to afa35ee Compare November 28, 2024 19:20
Related to
#21

Signed-off-by: Erik Sjölund <[email protected]>
@eriksjolund eriksjolund force-pushed the add-systemd-system-service-User=-example branch from afa35ee to bd4393a Compare November 28, 2024 19:25
@eriksjolund eriksjolund changed the title WIP: Add systemd system service example (configured with User=) add WIP draft-example.nsenter (an systemd system service example configured with User=) Nov 28, 2024
@eriksjolund eriksjolund marked this pull request as ready for review November 28, 2024 19:27
@eriksjolund eriksjolund merged commit 801e319 into main Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant