smart.service 240 B

123456789101112
  1. [Unit]
  2. Description=Smart Odoo Container Service
  3. Requires=database.service
  4. After=database.service
  5. [Service]
  6. Restart=always
  7. ExecStart=/usr/bin/docker start smart
  8. ExecStop=/usr/bin/docker stop -t 2 smart
  9. [Install]
  10. WantedBy=multi-user.target