Commit 27c18b03 authored by Decoupes Remy's avatar Decoupes Remy
Browse files

systemd: add user

parent 8c0fd854
......@@ -31,7 +31,7 @@ python3 collectTweets.py
```
## Optional : create a systemd deamon
1. Copy service file `sudo cp systemd/mood-tweets-collect.service /lib/systemd/system`
2. Modify /lib/systemd/system/mood-tweets-collect.service with the correct `WorkingDirectory`
2. Modify `/lib/systemd/system/mood-tweets-collect.service with the correct `WorkingDirectory` and `User
3. Reload systemd :`sudo systemctl daemon-reload`
4. Enable auto start using command : `sudo systemctl enable mood-tweets-collect.service`
## License
......
......@@ -2,6 +2,7 @@
Description=H2020 MOOD / TETIS collect tweets
[Service]
User=rdecoupe
WorkingDirectory=/home/rdecoupe/mood-tetis-tweets-collect/
ExecStart=/usr/bin/python3 collectTweets.py
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment