Serviços recém-instalados não iniciados na inicialização

1

Instalei sabnzbd e posso executar service sabnzbdplus start e service sabnzbdplus stop para iniciar e parar o programa sem problemas. Tem arquivos de configuração em /etc/default e /etc/init.d . Eu notei que o meu servidor plex tem um arquivo adicional em /etc/init e sabnzbd não. Eu aprendi sobre os níveis de execução, e a pasta rc2.d também tem um arquivo S98sabnzbdplus . Meu nível de execução é 2.

Aqui está a saída de 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

Aqui está o conteúdo do arquivo /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=

Aqui está a saída do comando grep 'Joshr' /etc/passwd

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

Ontem eu tentei adicionar o comando service sabnzbdplus start a um arquivo de script, ele funcionou bem quando o script foi executado manualmente. Em seguida, adicionei uma chamada ao script no arquivo /etc/rc.local , mas isso ainda não funcionava na inicialização.

    
por Joshr 12.11.2015 / 05:14

0 respostas