Skip to content
Mikhaël Regni edited this page Dec 30, 2019 · 1 revision

This tutorial setup EmbyStat as a service on a Debian system. Tested on Ubuntu 16.04 and on a Netgear ReadyNAS 314.

Credits go to @Shenniko and @Alex3111

  1. Create the user 'embystat'
    useradd embystat
  2. Add the user 'embystat' to the sudo group and also create the /home/embystat folder
    usermod -aG sudo embystat
  3. Download the proper artifact from the release page.
  4. Unzip it to /home/embystat.
  5. Change folder to /home/embystat and chmod the file EmbyStat
    cd /home/embystat
    chmod +x EmbyStat
  6. Create the service file for autostart/restart/bootstart at /etc/systemd/system
    cd /etc/systemd/system nano embystat.service
  7. Paste the following code onto the embystat.service file
Description=Emby Stats program

[Service]
User=embystat

# The configuration file application.properties should be here:
#change this to your workspace
WorkingDirectory=/home/embystat

#path to executable. 
#executable is a bash script which calls jar file
ExecStart=/home/embystat/EmbyStat
SuccessExitStatus=143
TimeoutStopSec=10
Restart=on-failure
RestartSec=5

[Install]
WantedBy=multi-user.target
  1. Make the embystat.service start/restart on boot with the following commands
    systemctl enable embystat.service systemctl start embystat.service
  2. After running the below command, it should show: active (running)
    systemctl status embystat.service
  3. Give it about 30 seconds and open with your browser to :6555
Clone this wiki locally