Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
umr-tetis
MOOD
mood-tetis-tweets-collect
Commits
060a6c95
Commit
060a6c95
authored
Aug 11, 2020
by
Decoupes Remy
Browse files
fix error on deamon
parent
9f24858d
Changes
2
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
060a6c95
...
...
@@ -30,8 +30,9 @@ The script can be launched using this command :
python3 collectTweets.py
```
## Optional : create a systemd deamon
1.
Create a link
`ln -s systemd/mood-tweets-collect.service /lib/systemd/system`
2.
Reload systemd :
`systemctl daemon-reload`
3.
Enable auto start using command :
`systemctl enable mood-tweets-collect.service`
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 execPath
3.
Reload systemd :
`sudo systemctl daemon-reload`
4.
Enable auto start using command :
`systemctl enable mood-tweets-collect.service`
## License
This code is provided under the
[
CeCILL-B
](
https://cecill.info/licences/Licence_CeCILL-B_V1-en.html
)
free software license agreement.
\ No newline at end of file
systemd/mood-tweets-collect.service
View file @
060a6c95
...
...
@@ -2,7 +2,7 @@
Description
=
H2020 MOOD / TETIS collect tweets
[Service]
ExecStart
=
/usr/bin/python3
./..
/collectTweets.py
ExecStart
=
/usr/bin/python3
/home/rdecoupe/mood-tetis-tweets-collect
/collectTweets.py
Restart
=
on-failure
RestartSec
=
10
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment