en:linux:autostart

This translation is older than the original page and might be outdated.
Draft Newest approved | Approver: psycore

This is an old revision of the document!


Autostart after Linux reboot

tutname=Autostart nach Linux Reboot|tutautor=[[psycore]]|tutversion=1.0|tutquelle=http://www.hellhost.de/wiki/linux:autostart

If you operate a Linux server, some services must always be available. When the server restarts, certain programmes should start immediately. A simple cronjob is sufficient for this.

Log on as the user under which the programme is running and open the cronjob list:

$> crontab -e

The following command must now be entered as a cronjob:

# m h  dom mon dow   command
@reboot cd /home/user/programdir; ./program start

As a practical example, the automatic start of an IRCD with services:

# m h  dom mon dow   command
@reboot cd /home/psycore/Unreal3.2; ./unreal start
@reboot cd /home/psycore/services; ./services
  • en/linux/autostart.1699094520.txt.gz
  • Last modified: 2023/11/04 11:42
  • by 47.128.52.31