lcmbot.service.tuc_example 433 B

1234567891011121314151617
  1. [Unit]
  2. Description=LCM Telegram Bot
  3. Requires=lcmbot-redis-server.service
  4. After=network.target lcmbot-redis-server.service
  5. [Service]
  6. Type=simple
  7. User=lcmbot
  8. Group=lcmbot
  9. WorkingDirectory=/opt/lcmbot/LCMbot
  10. Environment=https_proxy=http://192.168.0.1:3128/
  11. EnvironmentFile=/usr/local/etc/lcmbot/lcmbot.conf
  12. ExecStart=/home/lcmbot/miniconda2/bin/python2 /opt/lcmbot/LCMbot/LCMbot.py
  13. Restart=always
  14. [Install]
  15. WantedBy=multi-user.target