This question has already been answered:

Guys how to make the command start when OSes start (Linux)

/etc/init.d/sysklogd restart 

because by experience I found out that through reboot it will not be restarted. It is necessary to send authentication logs to another server - correct or incorrect password entry.

Reported as a duplicate by members aleksandr barakin , Streletz , cheops , user194374 , enzo 26 Jun '16 at 4:27 .

A similar question was asked earlier and an answer has already been received. If the answers provided are not exhaustive, please ask a new question .

  • python does not roll, the customer only has the requirement of ++ - Nicola Krivosheya
  • four
    @NikolaKrivosheya there is no difference in what language is written that they run the recipes listed. - gbg
  • What is the distribution? In the latest versions of ubuntu, because of systemd, you need to perform several other actions - FeroxTL
  • 2
    Restarting the daemon on boot is hard. Why do you think that when the start fails - restart at the same time will help something? It is necessary to repair the launch of the demon, and not twist the crutches. - Pavel Mayorov

3 answers 3

Need to do a couple of commands.

 update-rc.d sysklogd defaults #не для всех дистрибутивов update-rc.d sysklogd enable 

If the script is compatible with the distrom. For systems with the compatibility package and the start-up, the launch link will also be updated.

    In Linux distributions, the file "rc.local" is responsible for auto-executing commands, which is located along the path: /etc/rc.local

    1.Open the rc.local file

    2. Paste the command to the line exit 0

    • look at /etc/init.d/skeleton - it’s interesting - eri
     rc-update add sysklogd default