From 3b5e32f78115f4d2a7f02569edf4273537570ecb Mon Sep 17 00:00:00 2001 From: Nick Pourazima <12181252+nickpourazima@users.noreply.github.com> Date: Mon, 2 Oct 2023 18:42:05 -0600 Subject: [PATCH] Update README.md (#11) --- README.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index fb56817..18b01dc 100644 --- a/README.md +++ b/README.md @@ -154,7 +154,21 @@ To replace: #### [audioGuestBook systemctl service](/audioGuestBook.service) -This service starts the python script on boot. Place it in the `/etc/systemd/system` directory. +This service starts the python script on boot. Place it in the `/etc/systemd/system` directory and modify the **WorkingDirectoy** and **ExecStart** paths below according to the specific directory in which you cloned the project, i.e.: + +```sh +[Unit] +Description=Rotary Phone Guest Book Project +After=multi-user.target +[Service] +WorkingDirectory=/home//Desktop/rotaryGuestBook +User= +Type=simple +Restart=always +ExecStart=/usr/bin/env python3 /home//Desktop/rotaryGuestBook/rotaryGuestBook.py +[Install] +WantedBy=multi-user.target +``` ```sh systemctl enable audioGuestBook.service