fix
This commit is contained in:
@@ -1,14 +1,28 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Files Service
|
Description=OPS Files Service
|
||||||
After=network.target
|
Wants=network-online.target
|
||||||
|
Requires=ops-visual.service
|
||||||
|
After=network-online.target ops-visual.service
|
||||||
|
PartOf=ops-stack.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
User=ops
|
WorkingDirectory=/data/app
|
||||||
WorkingDirectory=/opt/ops/files
|
EnvironmentFile=/data/app/etc/ops.env
|
||||||
ExecStart=/opt/ops/files/ops-files
|
Environment=BSM_RuntimeMode=prod
|
||||||
|
Environment=RUN_MODE=prod
|
||||||
|
Environment=BSM_Prefix=/data/app
|
||||||
|
ExecStart=/data/app/ops-files
|
||||||
|
ExecStartPost=/data/app/systemd/wait-http.sh ops-files http://127.0.0.1:12452/Files/v1/ping/hello 60
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
RestartSec=5s
|
RestartSec=5s
|
||||||
|
TimeoutStartSec=75s
|
||||||
|
TimeoutStopSec=30s
|
||||||
|
KillSignal=SIGTERM
|
||||||
|
StandardOutput=journal
|
||||||
|
StandardError=journal
|
||||||
|
SyslogIdentifier=ops-files
|
||||||
|
LimitNOFILE=1048576
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=ops-stack.target
|
||||||
|
|||||||
Reference in New Issue
Block a user