[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Start/Stop Script



Hallo und guten Abend Michelle,

danke für die Email vom 12.04.2005 21:09
Michelle Konzack schrieb - you wrote:

> Schon mal die erste Zeile Deines start-stop-daemon Scripts auf

> #!/bin/bash -x

> geändert und geguckt was nicht geht ?
> Das hat mir schon manchmal Nerven gespart.


ich habs jetzt so gelöst:

--snip
#!/bin/sh
# Start/stop postgrey

case "$1" in
start)  echo -n "Starting postgrey"
        /root/tools/postgrey --inet=10023 -d
        echo "."
        ;;
stop)   echo -n "Stopping postgrey"
        killall -9 postgrey
        echo "."
        ;;
*)      echo "Usage: /etc/init.d/postgrey start|stop|"
        exit 1
        ;;
esac
exit 0
--snap

-- 
Viele Grüße, Kind regards,
 Jim
 Unregistered Debian user
----------
Zufalls-Zitat
----------
Niemals in der Welt hört der Haß durch Haß auf,
Haß hört durch Liebe auf.
----------
Dieser Text hat nichts mit dem Empfänger der Mail zu tun
----------
    
Virus free. Checked by NOD32 Version 1.1058 Update 12.04.2005



Reply to: