Verified Commit 76edbb9e authored by Aleksey Shirokih's avatar Aleksey Shirokih
Browse files

Remove services

parent ce81228e
Pipeline #13387 passed with stages
in 49 seconds
Just an example config for nginx reverse proxy. #Just an example config for nginx reverse proxy.
\ No newline at end of file
...@@ -4,4 +4,3 @@ Additional scripts ...@@ -4,4 +4,3 @@ Additional scripts
That directory contains scripts used with systems based on systemd. That directory contains scripts used with systems based on systemd.
* `noc-tower.service` should be placed to `/etc/systemd/system` * `noc-tower.service` should be placed to `/etc/systemd/system`
* `noc-tower-backup.service` and `noc-tower-backup.timer` should be used together for backup. Backup directory is hardcoded with `/opt/tower_backup`. Also script will remove backup after 5 days. Fell free to change that values on your flavour.
\ No newline at end of file
[Unit]
Description=NOC supervisor backup service
[Service]
Type=oneshot
WorkingDirectory=/opt/tower
User=tower
ExecStart=/bin/bash -c "/opt/tower/bin/tower-dump --output /opt/tower_backup/`date +%%Y-%%m-%%d-%%H:%%M`.dump"
ExecPostStart=/bin/bash -c "find /opt/tower_backup/ -mtime +5 -exec rm {} \;"
[Install]
WantedBy=multi-user.target
[Unit]
Description=Run tower-backup.service every day
[Timer]
OnCalendar=daily
RandomizedDelaySec=180
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment