更新 self-self.service

This commit is contained in:
fumingwei
2020-07-15 16:45:12 +08:00
parent de3cb12cee
commit 6b486129a1

View File

@@ -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