Inhaltsverzeichnis

Autostart unter Linux für Server-Dienste

SUSE

Debian/Ubuntu

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