更新 self-self.service
This commit is contained in:
@@ -6,10 +6,9 @@ After=docker.service
|
|||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
RemainAfterExit=yes
|
RemainAfterExit=yes
|
||||||
ExecStart=/bin/true
|
WorkingDirectory=/opt/tsg/self_test/compose/%i
|
||||||
ExecStop=/bin/true
|
ExecStart=/usr/local/bin/docker-compose up -d --remove-orphans
|
||||||
ExecStartPost=/usr/local/bin/docker-compose -f /opt/tsg/self_test/compose/docker-compose.yml up -d
|
ExecStop=/usr/local/bin/docker-compose down --remove-orphans
|
||||||
ExecStopPost=/usr/local/bin/docker-compose -f /opt/tsg/self_test/compose/docker-compose.yml down
|
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|||||||
Reference in New Issue
Block a user