Fix the Systemd unit for discourse
Switch the systemd unit to a oneshot type
This commit is contained in:
@@ -1,23 +0,0 @@
|
||||
[Unit]
|
||||
Description=discourse service with docker compose
|
||||
Requires=docker.service
|
||||
After=docker.service
|
||||
|
||||
[Service]
|
||||
Restart=always
|
||||
|
||||
WorkingDirectory=<%= @deploy_path %>
|
||||
|
||||
Environment="SUPERVISED=true"
|
||||
|
||||
ExecStartPre=<%= @deploy_path %>/launcher stop app
|
||||
# Remove all containers that have stopped for > 24 hours
|
||||
ExecStartPre=<%= @deploy_path %>/launcher cleanup
|
||||
|
||||
ExecStart=<%= @deploy_path %>/launcher start app
|
||||
|
||||
ExecStop=<%= @deploy_path %>/launcher stop app
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
Reference in New Issue
Block a user