automacao.samos
(usa CentOS)
Enviado em 04/09/2020 - 17:49h
não consigo fazer ele inicializar, após o reboot verificando o status do serviço recebo essa mensagem,
no centOS 7 isso nao acontece com o mesmo script.
[root@localhost ~]# systemctl status ServerSamosAdmin
● ServerSamosAdmin.service
Loaded: loaded (/etc/systemd/system/ServerSamosAdmin.service; static; vendor preset: disabled)
Active: failed (Result: core-dump) since Fri 2020-09-04 16:29:15 EDT; 28s ago
Process: 1312 ExecStart=/usr/bin/npm start (code=dumped, signal=ABRT)
Main PID: 1312 (code=dumped, signal=ABRT)
set 04 16:29:15 localhost.localdomain systemd[1]: ServerSamosAdmin.service: Main process exited, code=dumped, status=6/ABRT
set 04 16:29:15 localhost.localdomain systemd[1]: ServerSamosAdmin.service: Failed with result 'core-dump'.
set 04 16:29:15 localhost.localdomain systemd[1]: ServerSamosAdmin.service: Service RestartSec=100ms expired, scheduling restart.
set 04 16:29:15 localhost.localdomain systemd[1]: ServerSamosAdmin.service: Scheduled restart job, restart counter is at 5.
set 04 16:29:15 localhost.localdomain systemd[1]: Stopped ServerSamosAdmin.service.
set 04 16:29:15 localhost.localdomain systemd[1]: ServerSamosAdmin.service: Start request repeated too quickly.
set 04 16:29:15 localhost.localdomain systemd[1]: ServerSamosAdmin.service: Failed with result 'core-dump'.
set 04 16:29:15 localhost.localdomain systemd[1]: Failed to start ServerSamosAdmin.service.
[root@localhost ~]#
/etc/rc.d/rc.local
-------------------
systemctl start ServerSamosAdmin.service
touch /var/lock/subsys/local
/etc/systemd/system/ServerSamosAdmin.service
--------------------------------------------
[Service]
WorkingDirectory=/home/samosadmin/server
ExecStart=/usr/bin/npm start
User=root
Restart=always
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=ServerSamosAdmin
Versao do S.O.
--------------
[root@localhost ~]# cat /etc/redhat-release
CentOS Linux release 8.2.2004 (Core)
[root@localhost ~]#