La fonction service, pour gérer les Daemon ou Services d'une machine.
root@elliott:~# service -h
Usage: service < option > | --status-all | [ service_name [ command | --full-restart ] ]
root@elliott:~#
service --status-all
root@elliott:~# service --status-all
[ - ] alsa-utils
[ - ] anacron
[ - ] apache-htcacheclean
[ + ] apache2
[ + ] apparmor
[ + ] bluetooth
[ - ] cgroupfs-mount
[ - ] console-setup.sh
[ + ] cron
[ + ] cups
[ + ] cups-browsed
[ + ] dbus
[ + ] docker
[ - ] gdm3
[ - ] gdomap
[ - ] hwclock.sh
[ - ] keyboard-setup.sh
[ + ] kmod
[ + ] lm-sensors
[ + ] networking
[ + ] plymouth
[ + ] plymouth-log
[ + ] procps
[ - ] rsync
[ - ] saned
[ - ] screen-cleanup
[ + ] sddm
[ + ] smartmontools
[ - ] speech-dispatcher
[ + ] ssh
[ - ] sudo
[ - ] sysstat
[ + ] udev
[ - ] x11-common
root@elliott:~#
- service stop
+ service start (en fonction)
service ssh stop
va stopper le serveur ssh de la machine
service ssh start
va activer le serveur ssh de la machine
service ssh restart
va stopper puis relancer le serveur ssh ( pour prendre en compte les modifications de configuration par exemple)