★☆★参加したら書き込むスレ☆★☆

0b9ed46b Anon.@公開gw 2011-09-19 04:44
/etc/init.d/saku を添付したはずが、出来てなかったようだ。

#!/bin/sh
### BEGIN INIT INFO
# Provides:       saku
# Required-Start: $network $remote_fs $syslog
# Required-Stop:  $network $remote_fs $syslog
# Default-Start:  2 3 4 5
# Default-Stop:   1
# Description:    saku, a shingetsu p2p BBS client
### END INIT INFO

USER=shingetsu
COMMAND=/usr/local/bin/saku
DIRECTORY=/usr/local/share/saku

test -x $COMMAND || exit 0

case "$1" in
    start)
        echo -n "Starting p2p bbs: saku"
        if start-stop-daemon --start --background --chuid $USER --chdir $DIRECTORY --pidfile /var/run/saku.pid --make-pidfile --exec $COMMAND -- $SAKU_OPTS; then
          echo "."
        else
          echo " ... failed."
        fi
    ;;
    stop)
        echo -n "Stopping p2p bbs: saku"
        if start-stop-daemon --stop --quiet --pidfile /var/run/saku.pid; then
          echo "."
        else
          echo " ... failed."
        fi
    ;;
    restart|force-reload)
        $0 stop
        $0 start
    ;;
    *)
        echo "Usage: $0 {start|stop|restart|force-reload}"
        exit 1
    ;;
esac

exit 0

Top of this page. | <<last 0 1 2

limit: 15360KB

(★☆★参加したら書き込むスレ☆★☆/250/0.1MB)


Powered by shinGETsu.