새로 설치된 서비스가 부팅 시 시작되지 않음

새로 설치된 서비스가 부팅 시 시작되지 않음

설치했고 문제 없이 프로그램을 실행 하고 시작하고 중지 sabnzbd할 수 있습니다 . 및 에 구성 파일이 있습니다 . 내 plex 서버에 추가 파일이 있고 그렇지 않다는 것을 알았습니다 . 실행 수준에 대해 배웠으며 폴더에도 파일이 있습니다. 내 실행 수준은 2입니다.service sabnzbdplus startservice sabnzbdplus stop/etc/default/etc/init.d/etc/initsabnzbdrc2.dS98sabnzbdplus

출력은 다음과 같습니다 lsb_release -a; uname -a; apt-cache policy sabnzbdplus.

No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.3 LTS
Release:        14.04
Codename:       trusty
Linux Joshr 3.19.0-33-generic #38~14.04.1-Ubuntu SMP Fri Nov 6 18:17:28 UTC 201 5 x86_64 x86_64 x86_64 GNU/Linux
sabnzbdplus:
Installed: 0.8.0~beta1-0ubuntu1~jcfp2~trusty
Candidate: 0.8.0~beta1-0ubuntu1~jcfp2~trusty
Version table:
*** 0.8.0~beta1-0ubuntu1~jcfp2~trusty 0
    500 http://ppa.launchpad.net/jcfp/ppa/ubuntu/ trusty/main amd64 Packages
    100 /var/lib/dpkg/status
 0.7.16-1ubuntu1 0
    500 http://us.archive.ubuntu.com/ubuntu/ trusty/multiverse amd64 Packages

파일 내용은 다음과 같습니다 /etc/default/sabnzbdplus.

# --daemon option is always used, and the program is
# started under the account of $USER, as set below.
#
# Each setting is marked either "required" or "optional";
# leaving any required setting unconfigured will cause
# the service to not start.

# [required] user or uid of account to run the program as:
USER=Joshr

# [optional] full path to the configuration file of your choice;
#            otherwise, the default location (in $USER's home
#            directory) is used:
CONFIG=

# [optional] hostname/ip and port number to listen on:
HOST=0.0.0.0
PORT=4000

# [optional] extra command line options, if any:
EXTRAOPTS=

다음은 명령의 출력입니다.grep 'Joshr' /etc/passwd

Joshr:x:1000:1000:Joshr,,,:/home/Joshr:/bin/bash

어제 스크립트 파일에 명령을 추가하려고 시도했는데 service sabnzbdplus start스크립트를 수동으로 실행할 때 제대로 작동했습니다. 그런 다음 파일의 스크립트에 대한 호출을 추가했지만 /etc/rc.local시작 시 여전히 작동하지 않았습니다.

관련 정보