-
-
Notifications
You must be signed in to change notification settings - Fork 21
Debian
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
- Create the user 'embystat'
useradd embystat
- Add the user 'embystat' to the sudo group and also create the /home/embystat folder
usermod -aG sudo embystat
- Download the proper artifact from the release page.
- Unzip it to /home/embystat.
- Change folder to /home/embystat and chmod the file EmbyStat
cd /home/embystat
chmod +x EmbyStat
- Create the service file for autostart/restart/bootstart at /etc/systemd/system
cd /etc/systemd/system
nano embystat.service
- 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
- Make the embystat.service start/restart on boot with the following commands
systemctl enable embystat.service
systemctl start embystat.service
- After running the below command, it should show: active (running)
systemctl status embystat.service
- Give it about 30 seconds and open with your browser to :6555