Releases/40/services
De ALT Linux
Questão 1: como iniciar ou parar de serviço (daemon, daemon)?
- Resposta: Para iniciar / reiniciar / informação / parar serviços utilizando serviço. Exemplos: lançar serviço CUPS (impressão em suporte Linux)
[root@threebears ]# service cups start Starting CUPS service: [ DONE ]
verificar status
[root@threebears ]# service cups status cupsd is running
parar de serviço
[root@threebears ]# service cups stop Stopping CUPS service: [ DONE ]
Além de iniciar, parar, status pode reiniciar comando, reload (para alguns serviços).
Questão 2: como habilitar o serviço a ser executado automaticamente na inicialização?
Resposta: Use o comando chkconfig, para detalhes, man chkconfig
Exemplos: clarificação da situação actual do lançamento serviço CUPS
[root @ threebears] # chkconfig - list cups cups 0: off 1: off 2: on 3: on 4: on 5: em 6: off
impossibilitação arranque dos serviços para runlevel 3 CUPS
[root@threebears ]# chkconfig --level 3 cups off [root @ threebears] # chkconfig - nível 3 xícaras off
Execute chkconfig - lista vai lhe dar uma lista de todos os serviços disponíveis.
