build files for making podman containers
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

28 lines
704 B

[Unit]
# Implicit needs are explicitly needed to survive shutdown till stop finishes
After=network.target
BindsTo=mcbe.socket
Description=Minecraft Bedrock Edition server
[Service]
ExecReload=/bin/bash -c "echo reload > /run/mcb"
ExecStop=-/bin/bash -c "echo stop > /run/mcb"
ExecStart=/bin/bash -c "LD_LIBRARY_PATH=. ./bedrock_server"
SuccessExitStatus=1
User=mcadmin
WorkingDirectory=/home/mcadmin
Restart=on-failure
StandardInput=socket
StandardOutput=journal
StandardError=journal
Type=simple
# Thanks for the security agowa338
PrivateUsers=true
ProtectHome=true
ProtectControlGroups=true
ProtectKernelModules=true
ProtectKernelTunables=true
ProtectSystem=full
[Install]
WantedBy=multi-user.target