2
0

feat: docker-compose yml file support defined networks and update control service

This commit is contained in:
wfc
2024-12-18 16:19:01 +08:00
parent d419e5acd9
commit adc339bdb8
3 changed files with 44 additions and 13 deletions

View File

@@ -1,15 +1,15 @@
[Unit]
Description=WANFi Controller Service
After=network.target
Description=WANFi Control and Billing System
After=network.target docker.service
Requires=network.target docker.service
[Service]
Type=forking
#WorkingDirectory=/opt/wfc/docker
ExecStart=/opt/wfc/bin/wfccontrol.sh start
ExecStop=/opt/wfc/bin/wfccontrol.sh stop
ExecReload=/opt/wfc/bin/wfccontrol.sh status
ExecStartPost=/opt/wfc/bin/wfccontrol.sh version
PIDFile=/var/run/wfccontrol.pid
Type=oneshot
RemainAfterExit=yes
WorkingDirectory=/opt/wfc/docker
ExecStart=docker-compose start
ExecStop=docker-compose stop
ExecReload=docker-compose restart
[Install]
WantedBy=multi-user.target
WantedBy=multi-user.target