From c6936f8f520a624a0e2e108ef0316839acb245ff Mon Sep 17 00:00:00 2001 From: Jeena Date: Fri, 15 Aug 2025 09:14:35 +0900 Subject: [PATCH] Explain to change the working directory in service file --- README.md | 1 + systemd/kidsnote.service | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a581264..30991a8 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,7 @@ pipenv install This will run the script every day at midnight or once you wake up your computer: +1. Change the working directory to where you checked out the code in systemd/kidsnote.service 1. `cp systemd/kidsnote.service ~/.config/systemd/user/` 2. `cp systemd/kidsnote.timer ~/.config/systemd/user/` 3. `systemctl --user daemon-reload` diff --git a/systemd/kidsnote.service b/systemd/kidsnote.service index 73b75f8..08f3f7b 100644 --- a/systemd/kidsnote.service +++ b/systemd/kidsnote.service @@ -4,6 +4,6 @@ Wants=kidsnote.timer [Service] Type=oneshot -WorkingDirectory=/home/jeena/Projects/kidsnote +WorkingDirectory=/home/jeena/Projects/kidsnote-backup ExecStart=/usr/bin/pipenv run ./get_report.py ExecStart=/usr/bin/pipenv run ./report_json_down.py