SRC – Gerenciamento de daemons no AIX
O AIX tem um gerenciador de daemons, chamado SRC, em inglês, “
System Resource Controller“.
Através do SRC podemos verificar se um serviço está ativo, parar, iniciar ou reinicializar um serviço.
Isto pode ser feito através dos seguintes comandos:
startsrc: iniciar
refresh: reiniciar
stopsrc: parar
lssrc: verificar status
O SRC permite trabalharmos com um serviço ou um grupo de serviços. Para um serviço, usamos a opção “-s” e para um grupo, “-g”.
Por exemplo, para gerenciar os serviços de NFS:
Verificando status do grupo de serviços:
# lssrc -g nfs
Subsystem Group PID Status
biod nfs inoperative
nfsd nfs inoperative
rpc.statd nfs inoperative
rpc.lockd nfs inoperative
rpc.mountd nfs inoperative
Iniciando um serviço:
# startsrc -s nfsd
# lssrc -g nfs
Subsystem Group PID Status
nfsd nfs 23672 active
biod nfs inoperative
rpc.statd nfs inoperative
rpc.lockd nfs inoperative
rpc.mountd nfs inoperative
Iniciando um grupo de serviços:
# startsrc -g nfs
0513-059 The biod Subsystem has been started. Subsystem PID is 17242.
0513-029 The nfsd Subsystem is already active.
Multiple instances are not supported.
0513-059 The rpc.statd Subsystem has been started. Subsystem PID is 19862.
0513-059 The rpc.lockd Subsystem has been started. Subsystem PID is 24236.
0513-059 The rpc.mountd Subsystem has been started. Subsystem PID is 6802.
# lssrc -g nfs
Subsystem Group PID Status
nfsd nfs 23672 active
biod nfs 17242 active
rpc.statd nfs 19862 active
rpc.lockd nfs 24236 active
rpc.mountd nfs 6802 active
Parando um grupo de serviços:
# stopsrc -g nfs
0513-044 The nfsd Subsystem was requested to stop.
0513-044 The biod Subsystem was requested to stop.
0513-044 The rpc.statd Subsystem was requested to stop.
0513-044 The rpc.lockd Subsystem was requested to stop.
0513-044 The rpc.mountd Subsystem was requested to stop.
# lssrc -g nfs
Subsystem Group PID Status
biod nfs inoperative
nfsd nfs inoperative
rpc.statd nfs inoperative
rpc.lockd nfs inoperative
rpc.mountd nfs inoperative
Fonte: http://www.unixnotes.org/2007/01/31/src-gerenciamento-de-daemons-no-aix