Browse Source

feat: Add systemd unit file

master
Zachary Seguin 7 months ago
parent
commit
accc2136c6
  1. 32
      ENV.sample
  2. 12
      cscsysbot.service

32
ENV.sample

@ -1,27 +1,27 @@
# IRC Configuration
export IRC_SERVER=irc.libera.chat
export IRC_PORT=6697
export IRC_CHANNELS="#channel"
export IRC_USER=user
export IRC_NICK=nick
export IRC_PASSWORD=password
IRC_SERVER=irc.libera.chat
IRC_PORT=6697
IRC_CHANNELS="#channel"
IRC_USER=user
IRC_NICK=nick
IRC_PASSWORD=password
# Set this variable to enable debug
export IRC_DEBUG
IRC_DEBUG
# Background Messages
export SYSCOM_CHANNELS="#channel"
SYSCOM_CHANNELS="#channel"
# Twitter Configuration
export TWITTER_CONSUMER_KEY=""
export TWITTER_CONSUMER_SECRET=""
export TWITTER_ACCESS_TOKEN=""
export TWITTER_ACCESS_SECRET=""
export TWITTER_USERS="UWNetworkAlert"
TWITTER_CONSUMER_KEY=""
TWITTER_CONSUMER_SECRET=""
TWITTER_ACCESS_TOKEN=""
TWITTER_ACCESS_SECRET=""
TWITTER_USERS="UWNetworkAlert"
# Uptime Robot
export UPTIME_ROBOT_API_KEY=""
UPTIME_ROBOT_API_KEY=""
# UPS
export UPSES=""
export UPS_COMMUNITY_STRING=""
UPSES=""
UPS_COMMUNITY_STRING=""

12
cscsysbot.service

@ -0,0 +1,12 @@
[Unit]
Description=CSC Systems Committee IRC Bot
[Service]
EnvironmentFile=/etc/cscsysbot/env
ExecStart=/usr/local/bin/cscsysbot
User=cscbot
Group=cscbot
Restart=on-failure
[Install]
WantedBy=multi-user.target
Loading…
Cancel
Save