Skip to content

Instantly share code, notes, and snippets.

@pgaubatz
Created July 7, 2015 06:45
Show Gist options
  • Select an option

  • Save pgaubatz/0c7fa760a320a16a716e to your computer and use it in GitHub Desktop.

Select an option

Save pgaubatz/0c7fa760a320a16a716e to your computer and use it in GitHub Desktop.
A systemd service definition file for CommaFeed
[Unit]
Description=A bloat-free feed reader
After=local-fs.target network.target
[Service]
User=www-data
Group=www-data
WorkingDirectory=/opt/commafeed
ExecStart=/usr/bin/java -Djava.net.preferIPv4Stack=true -server -jar commafeed.jar server config.yml
SyslogIdentifier=commafeed
Restart=always
[Install]
WantedBy=multi-user.target
@pgaubatz
Copy link
Author

pgaubatz commented Jul 7, 2015

  1. Install CommaFeed using:
mkdir /opt/commafeed
cd /opt/commafeed

wget https://github.com/Athou/commafeed/releases/download/2.2.0/commafeed.jar
wget https://raw.githubusercontent.com/Athou/commafeed/2.2.0/config.yml.example -O config.yml
wget https://gist.githubusercontent.com/pgaubatz/0c7fa760a320a16a716e/raw/3d75acde31c8e973e3ff6c78b8187385a1a24df6/commafeed.service

ln -s /opt/commafeed/commafeed.service /etc/systemd/system/
systemctl daemon-reload
  1. Edit config.yml and commafeed.service.
  2. Start CommaFeed using: systemctl start commafeed.service.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment