Embed Notice
HTML Code
Corresponding Notice
- Embed this notice@sapphire @raccoon @prettygood docker:
>make a docker compose file
>run script
>script runs
>script runs even after computer restart
>running script again starts a new instance
>stopping the script, reading its log, and opening shell requires figuring out which container instance your compose is
>script itself is irrelevant
systemd
>make a .service file
>systemctl to enable and run the service
>journalctl to read its log
>.service file remains relevant, and any modifications to it modify behavior of the service (after daemon-reload)