mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-25 08:48:13 +02:00
Add alembic and start services scripts
This commit is contained in:
parent
44232b37f8
commit
443490b2dd
9 changed files with 761 additions and 1 deletions
20
scripts/dograh-services.service
Normal file
20
scripts/dograh-services.service
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
[Unit]
|
||||
Description=Dograh Services
|
||||
After=network.target postgresql.service
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
User=a
|
||||
Group=a
|
||||
WorkingDirectory=/home/a/dograh
|
||||
Environment="PATH=/opt/conda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
|
||||
ExecStart=/home/a/dograh/scripts/start_services.sh
|
||||
ExecStop=/home/a/dograh/scripts/stop_services.sh
|
||||
TimeoutStopSec=30
|
||||
Restart=on-failure
|
||||
RestartSec=10
|
||||
StandardOutput=journal
|
||||
StandardError=journal
|
||||
|
||||
[Install]
|
||||
Loading…
Add table
Add a link
Reference in a new issue