My file bash, and configurate for linux

http://ariaf.my.id/linux_aria/basics/services.html


services

/etc/init

/etc/init.d (ubuntu, debian)

sudo /etc/init.d/<nama-service> status
sudo /etc/init.d/<nama-service> restart
sudo /etc/init.d/<nama-service> stop

ls /etc/init.d

/etc/rc.d/init.d (cent, redhat)

ls /etc/init.d

service

service --status-all
service <nama-service> status
service <nama-service> start | restart | stop

systemctl

systemctl daemon-reload
systemctl restart <nama-service>

sudo systemctl enable <nama-service>

systemctl is-active <nama-service>
systemctl list-unit-files --type=service | grep enabled