feat(deploy): add Ubuntu 26.04 production package
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
[Unit]
|
||||
Description=Lehuo公益平台 MySQL backup
|
||||
Requires=docker.service
|
||||
After=docker.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
User=root
|
||||
WorkingDirectory=/opt/lehuo/app
|
||||
ExecStart=/usr/bin/bash /opt/lehuo/app/infra/ubuntu/scripts/backup.sh /etc/lehuo/lehuo.env
|
||||
Nice=10
|
||||
IOSchedulingClass=best-effort
|
||||
IOSchedulingPriority=7
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
Description=Run Lehuo公益平台 MySQL backup daily
|
||||
|
||||
[Timer]
|
||||
OnCalendar=*-*-* 03:30:00 Asia/Shanghai
|
||||
Persistent=true
|
||||
RandomizedDelaySec=15m
|
||||
Unit=lehuo-backup.service
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
Reference in New Issue
Block a user