Cheat para comandos de Servicios en Linux:

Equivalencias de Comandos

SysVinit Systemd Ubuntu
service SERVICE-NAME start systemctl start SERVICE-NAME service SERVICE-NAME start
service SERVICE-NAME stop systemctl stop SERVICE-NAME service SERVICE-NAME stop
service SERVICE-NAME restart systemctl restart SERVICE-NAME service SERVICE-NAME restart
service SERVICE-NAME reload systemctl reload SERVICE-NAME service SERVICE-NAME reload
service SERVICE-NAME status systemctl status SERVICE-NAME service SERVICE-NAME status
chkconfig SERVICE-NAME on systemctl enable SERVICE-NAME update-rc.d SERVICE-NAME defaults
chkconfig SERVICE-NAME off systemctl disable SERVICE-NAME update-rc.d SERVICE-NAME remove
chkconfig SERVICE-NAME systemctl is-enabled SERVICE-NAME /etc/init.d/SERVICE-NAME satus
chkconfig --list systemctl list-unit-files --type=service service --status-all

Ejemplo Script de Inicio Systemd

Path: /etc/systemd/system/[servicio].service

[Unit]

Description=[Descripcion]
After=network.target

[Service]

Type=forking
User=[Usuario]
Group=[Grupo]
ExecStart=[Ejecución de Proceso]
TimeoutSec=300
Restart=on-abort

[Install]

WantedBy=multi-user.target

Gabriel Soltz