Skip to content
This repository has been archived by the owner on May 31, 2021. It is now read-only.

Install flood with a service account

varyoo edited this page Jan 13, 2017 · 7 revisions

This example is given for ArchLinux or derivated, others distros may adjust some commands.

  • Follow pre-requisites part of the README.
  • Install nodejs and npm globally, don't do a per user installation:
# pacman -Syy
# pacman -S nodejs npm
  • Follow configuring part of the README.
  • Create a flood user:
# useradd -m flood
  • Install flood in /srv/flood:
# cd /srv
# git clone https://github.com/jfurrow/flood.git flood
# chown -R flood:flood /srv/flood
# cd /srv/flood
# npm install --production
  • Create the file /etc/systemd/system/flood.service:
[Unit]
Description=Flood rTorrent Web UI
After=network.target

[Service]
WorkingDirectory=/srv/flood
ExecStart=/usr/bin/npm start --production /srv/flood
User=flood

[Install]
WantedBy=multi-user.target
  • Start flood:
# systemctl start flood.service

Compiled in the AUR, original author: noraj1337

Clone this wiki locally