TSG-101: 增加自检 systemctl service 文件
This commit is contained in:
15
docker-compose/self-test.service
Normal file
15
docker-compose/self-test.service
Normal file
@@ -0,0 +1,15 @@
|
||||
[Unit]
|
||||
Description=Tsg self test
|
||||
Requires=docker.service
|
||||
After=docker.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
ExecStart=/bin/true
|
||||
ExecStop=/bin/true
|
||||
ExecStartPost=/usr/local/bin/docker-compose -f /opt/tsg/self_test/compose/docker-compose.yml up -d
|
||||
ExecStopPost=/usr/local/bin/docker-compose -f /opt/tsg/self_test/compose/docker-compose.yml down
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user