|
@@ -1,10 +1,12 @@
|
|
|
deploy:
|
|
|
scp cotisations.py root@odoo.fixme.ch:/usr/local/bin/cotisations.py
|
|
|
scp cotisations.service root@odoo.fixme.ch:/etc/systemd/system/cotisations.service
|
|
|
+ scp cotisations.timer root@odoo.fixme.ch:/etc/systemd/system/cotisations.timer
|
|
|
|
|
|
ssh root@odoo.fixme.ch systemctl daemon-reload
|
|
|
- ssh root@odoo.fixme.ch systemctl enable cotisations.service
|
|
|
- ssh root@odoo.fixme.ch systemctl restart cotisations.service
|
|
|
+ ssh root@odoo.fixme.ch systemctl enable cotisations.timer
|
|
|
+ ssh root@odoo.fixme.ch systemctl start cotisations.timer
|
|
|
+ ssh root@odoo.fixme.ch systemctl list-timers
|
|
|
|
|
|
log:
|
|
|
ssh root@odoo.fixme.ch journalctl -u cotisations.service -f
|