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
|
||||
Restart=always
|
||||
Environment=PYTHONPATH=%h/nxy
|
||||
Environment=CFG_FILE=config.json
|
||||
Environment=ENV_FILE=.env
|
||||
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]
|
||||
WantedBy=default.target
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
[Unit]
|
||||
Description=nxy database dump timer
|
||||
After=postgresql.service
|
||||
|
||||
[Timer]
|
||||
OnBootSec=10min
|
||||
OnBootSec=50min
|
||||
OnUnitActiveSec=12h
|
||||
|
||||
[Install]
|
||||
|
|
Loading…
Reference in New Issue
Block a user