Benutzer-Werkzeuge

Webseiten-Werkzeuge


autostart

Autostart unter Linux für Server-Dienste

SUSE

  • /etc/init.d/after.local

Debian/Ubuntu

  • /etc/rc.local

Knoppix

/etc/rc.local
#!/bin/bash
#
# rc.local
#
# Start local services after hardware detection
 
SERVICES="cups  apache2  mysql"
 
for i in $SERVICES; do
 [ -x /etc/init.d/"$i" ] && /etc/init.d/"$i" start >/dev/null 2>&1
done
 
# Add some time for processes to fork properly, avoid SIGHUP when existing too early
sleep 4
 
# Leave with "OK" status
exit 0
autostart.txt · Zuletzt geändert: 2016/09/11 09:49 von admin