Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:linux:autostart [2024/02/04 23:22] – removed psycoreen:linux:autostart [2024/02/05 16:09] (current) psycore
Line 1: Line 1:
 +{{tag>english linux debian cron}}
 +====== Autostart after Linux reboot ======
  
 +===== Problem description =====
 +
 +If you operate a Linux server, some services must always be available. When the server restarts, certain programmes should start directly. A simple cronjob is sufficient for this.
 +
 +===== Problem solution =====
 +
 +Log on as the user under which the programme is running and open the cronjob list:
 +
 +<code bash>$> crontab -e</code>
 +
 +The following command must now be entered as a cronjob:
 +
 +<code bash>
 +# m h  dom mon dow   command
 +@reboot cd /home/user/programdir; ./program start
 +</code>
 +
 +As a practical example, the automatic start of an IRCD with services:
 +
 +<code bash>
 +# m h  dom mon dow   command
 +@reboot cd /home/psycore/Unreal3.2; ./unreal start
 +@reboot cd /home/psycore/services; ./services
 +</code>