twitterbot.service 385 B

123456789101112131415
  1. [Unit]
  2. Description=Mirai Twitter bot
  3. Requires=mirai.service
  4. Requires=puppeteer.service
  5. [Service]
  6. WorkingDirectory=%h/mirai-twitter-bot
  7. ExecStart=bash -l "%h/mirai-twitter-bot/bin/twitterbot" config.json
  8. #StandardOutput=append:%h/mirai-twitter-bot/twitterbot.log
  9. #StandardError=append:%h/mirai-twitter-bot/twitterbot.log
  10. Restart=always
  11. RestartSec=2s
  12. [Install]
  13. WantedBy=default.target