Explain to change the working directory in service file

This commit is contained in:
Jeena 2025-08-15 09:14:35 +09:00
parent 09d1f9c3b7
commit c6936f8f52
2 changed files with 2 additions and 1 deletions

View file

@ -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`

View file

@ -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