2. Dezember 201015 j Guten Morgen, ich bin grade dabei mir ein eigenes Start-/Stop-Skript, welches in die verschiedenen Runlevel eingetragen werden soll. Habe zurzeit aber noch ein Verständnisproblem. Das Skript sieht soweit so aus: #! /bin/sh ### BEGIN INIT INFO # Provides: ComBox functionality # Required-Start: # Required-Stop: # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Script for starting/stopping the combox controller software # Description: Executes the combox_init script with the required arguments for starting (start), stoping (stop) or restarting (restart) ### END INIT INFO # Author: FFE # Actions case "$1" in start) /opt/E+P/EUPCOMBOX_SYSTEM/combox_init start ;; stop) /opt/E+P/EUPCOMBOX_SYSTEM/combox_init stop ;; restart) /opt/E+P/EUPCOMBOX_SYSTEM/combox_init restart ;; esac exit 0 Das Skript erwartet ja eine Übergabevariable "start", "stop" oder "restart". Wie gewährleiste ich jetzt, dass wenn mein System startet, er beim Starten dem Skript ein "start" mitgibt und beim herunterfahren ein "stop"? MfG Fabian Bearbeitet 2. Dezember 201015 j von Fabftw
Archiv
Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.