Updated backup timer and added some vars to bot unit

This commit is contained in:
mrhanky 2017-08-22 21:45:26 +02:00
parent 3a7bb88a7d
commit e015fb7696
No known key found for this signature in database
GPG Key ID: 67D772C481CB41B8
2 changed files with 5 additions and 2 deletions

View File

@ -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

View File

@ -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]