Skip to content

Instantly share code, notes, and snippets.

@rraallvv
Created October 20, 2018 12:24
Show Gist options
  • Save rraallvv/962fa237f942d917f85252a32ded3fcc to your computer and use it in GitHub Desktop.
Save rraallvv/962fa237f942d917f85252a32ded3fcc to your computer and use it in GitHub Desktop.
Twitter Tip Bot service
[Unit]
Description=Twitter Tip Bot daemon
After=network.target nimiqd.service
[Service]
Type=simple
User=myuser
Group=myuser
Environment="TWITTER_USERNAME=twitter_username"
Environment="TWITTER_CONSUMER_KEY=consumer_key"
Environment="TWITTER_CONSUMER_SECRET=consumer_secret"
Environment="TWITTER_ACCESS_TOKEN=access_token"
Environment="TWITTER_ACCESS_TOKEN_SECRET=access_token_seret"
Environment="NIMIQ_RPC_USER=rpc_user"
Environment="NIMIQ_RPC_PASS=rpc_pass"
Environment="DATABASE_HOST=localhost"
Environment="DATABASE_USER=database_root"
Environment="DATABASE_PASS=database_pass"
Environment="GMAIL_ADDRESS=email"
Environment="OAUTH_CLIENT_ID=oauth_client_id"
Environment="OAUTH_CLIENT_SECRET=oauth_client_secret"
Environment="OAUTH_REFRESH_TOKEN=oauth_refresh_token"
Environment="OAUTH_ACCESS_TOKEN=oauth_access_token"
Environment="EMAIL_NOTIFICATION_ADDRESS=notification_email"
WorkingDirectory=/home/myuser/ftp/twitter-tip-bot
ExecStart=/usr/bin/node /home/myuser/ftp/twitter-tip-bot/twitter.js
Restart=on-failure
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment