Updated backup timer and added some vars to bot unit
This commit is contained in:
parent
3a7bb88a7d
commit
e015fb7696
|
@ -6,8 +6,10 @@ After=network.target
|
||||||
Type=simple
|
Type=simple
|
||||||
Restart=always
|
Restart=always
|
||||||
Environment=PYTHONPATH=%h/nxy
|
Environment=PYTHONPATH=%h/nxy
|
||||||
|
Environment=CFG_FILE=config.json
|
||||||
|
Environment=ENV_FILE=.env
|
||||||
WorkingDirectory=/home/nxy
|
WorkingDirectory=/home/nxy
|
||||||
ExecStart=/home/nxy/env/bin/python -m bot config.json
|
ExecStart=/home/nxy/env/bin/python -m bot $CFG_FILE $ENV_FILE
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=default.target
|
WantedBy=default.target
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=nxy database dump timer
|
Description=nxy database dump timer
|
||||||
|
After=postgresql.service
|
||||||
|
|
||||||
[Timer]
|
[Timer]
|
||||||
OnBootSec=10min
|
OnBootSec=50min
|
||||||
OnUnitActiveSec=12h
|
OnUnitActiveSec=12h
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user