dorian50 1 Posted March 21, 2016 Share Posted March 21, 2016 (edited) 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 March 21, 2016 by dorian50 Link to comment Share on other sites More sharing options...
NomadCF 15 Posted March 21, 2016 Share Posted March 21, 2016 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 More sharing options...
dorian50 1 Posted March 21, 2016 Author Share Posted March 21, 2016 i have found a other way i'ts very easy lol, use this => systemctl enable emby-server Thank's 1 Link to comment Share on other sites More sharing options...
Luke 37233 Posted March 21, 2016 Share Posted March 21, 2016 Well done, thanks for the info! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now