Explain to change the working directory in service file
This commit is contained in:
parent
09d1f9c3b7
commit
c6936f8f52
2 changed files with 2 additions and 1 deletions
|
@ -22,6 +22,7 @@ pipenv install
|
||||||
|
|
||||||
This will run the script every day at midnight or once you wake up your computer:
|
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/`
|
1. `cp systemd/kidsnote.service ~/.config/systemd/user/`
|
||||||
2. `cp systemd/kidsnote.timer ~/.config/systemd/user/`
|
2. `cp systemd/kidsnote.timer ~/.config/systemd/user/`
|
||||||
3. `systemctl --user daemon-reload`
|
3. `systemctl --user daemon-reload`
|
||||||
|
|
|
@ -4,6 +4,6 @@ Wants=kidsnote.timer
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
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 ./get_report.py
|
||||||
ExecStart=/usr/bin/pipenv run ./report_json_down.py
|
ExecStart=/usr/bin/pipenv run ./report_json_down.py
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue