From d2c531bc722ceb4b2eb240689caef11d5fb5b0d5 Mon Sep 17 00:00:00 2001 From: Tomasz Wolniewicz <twoln@umk.pl> Date: Tue, 20 Jun 2023 20:45:46 +0200 Subject: [PATCH] text updates --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 22878cc..2d08651 100644 --- a/README.md +++ b/README.md @@ -60,7 +60,9 @@ resolution based on the host machine and standard port 80 for connections. - As root run ` docker run -d --name otp_server --network host --rm otp_server:latest ` ### Running the dosker image at boot -For systems using systemctl we suggest to install the new service called +For systems using systemctl we suggest to install the new service called ` otp-docker ` +to do that create the ` otp-docker.service ` file in ` /usr/lib/systemd/system ` with the +contents as below: ``` [Unit] @@ -79,6 +81,12 @@ ExecStop=/usr/bin/docker stop -t 2 otp_server [Install] WantedBy=multi-user.target ``` +Next reload the daemon: ` systemctl daemon-reload `, start and enable the servce: +``` +systemctl start otp-docker +systemctl enable otp-docker +``` + ## Testing -- GitLab