Jump to content

Auto-Start Emby-Server on load ( Debian )


dorian50

Recommended Posts

dorian50

Hello, anyone can help me ? i want to make " auto-start emby server on load in debian "

Thank's ;)

i'm on debian 8.3

*EDIT*

i have found a other way i'ts very easy lol, use this

=> systemctl enable emby-server

Thank's  ;)

Edited by dorian50
Link to comment
Share on other sites

NomadCF

using chkconfig

apt-get install chkconfig
chkconfig emby-server on

using rc.local

vim /etc/rc.local
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

/etc/init.d/emby-server start

exit 0

using update-rc.d

update-rc.d emby-server enable

old school 

cd /etc/rc3.d
ln -s ../init.d/emby-server /etc/rc3.d/S06emby-server

 

cd = change directory

 

/etc/rc3.d = runlevel directory for auto  starting   

 

ln = ln - make links between files

 

-s =  make it a symlink

 

../init.d/emby-server = relative path to the service you want to start

 

 /etc/rc3.d/S06emby-server = path to runlevel directory along with the order in this directory (S06 vs S05 vs Sxx) we want this service to start  and  service name. Although you won't have to use the 'right' service name.    

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...