Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:linux:autostart [2024/02/04 22:22] – removed psycore | en:linux:autostart [2024/02/05 15:09] (current) – psycore | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | {{tag> | ||
| + | ====== 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> | ||
| + | |||
| + | The following command must now be entered as a cronjob: | ||
| + | |||
| + | <code bash> | ||
| + | # m h dom mon dow | ||
| + | @reboot cd / | ||
| + | </ | ||
| + | |||
| + | As a practical example, the automatic start of an IRCD with services: | ||
| + | |||
| + | <code bash> | ||
| + | # m h dom mon dow | ||
| + | @reboot cd / | ||
| + | @reboot cd / | ||
| + | </ | ||