Canek Peláez Valdés <can...@gmail.com> writes:

> * Really simple service unit files: The service unit files are really
> small, really simple, really easy to understand/modify. Compare the 9
> lines of sshd.service:
>
> $ cat /etc/systemd/system/sshd.service
> [Unit]
> Description=SSH Secure Shell Service
> After=syslog.target
>
> [Service]
> ExecStart=/usr/sbin/sshd -D
>
> [Install]
> WantedBy=multi-user.target
>
> with the 84 of /etc/init.d/sshd (80 without comments).

But the 80 lines of /etc/init.d/sshd  do a lot more than just and stop
the service. They ensure that there is an sshd configuration file and
give a meaningful message (including where to find the sample) if it is
not present, and check for the presence of the hostkeys (again which are
needed) and create them if they are not present. Your 9 lines of
sshd.service do none of this.
 

Reply via email to