diff --git a/README.md b/README.md index 22878cc15f7ae26eee6c4fc1ff5ea07fc94ac3a0..2d086512296fe772a7d41d230cef4148958ba491 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