Last active
October 30, 2023 13:51
-
-
Save kkroesch/0a8931d15ffc7fbe945d0a25d77b873c to your computer and use it in GitHub Desktop.
Example systemd config for web application
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a# /etc/systemd/system/webconsole.service | |
# | |
# Install with: | |
# # install https://github.com/yudai/gotty | |
# # systemctl daemon-reload | |
# # systemctl enable --now patchstatus.service | |
# | |
[Unit] | |
Description=Provide an ephemeral container with web console | |
After=network.target | |
[Service] | |
User=karsten | |
Group=karsten | |
WorkingDirectory=/var/webconsole | |
ExecStart=/usr/local/bin/gotty -w podman run -it --rm busybox | |
ExecReload=/bin/kill -HUP $MAINPID | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment