Code : Tout sélectionner
pi@raspberrypi /etc/init.d $ head -n 30 vitalk
#! /bin/sh
### BEGIN INIT INFO
# Provides: skeleton
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Should-Start: $portmap
# Should-Stop: $portmap
# X-Start-Before: nis
# X-Stop-After: nis
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# X-Interactive: true
# Short-Description: ViTalk initscript
# Description: Vitalk initscript
#
### END INIT INFO
# PATH should only include /usr/* if it runs after the mountnfs.sh script
PATH=/sbin:/usr/sbin:/bin:/usr/bin
DESC="vitalk deamon"
NAME=vitalk
DAEMON=/usr/local/bin/$NAME
DAEMON_ARGS="-t /dev/ttyAMA0"
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME
# Exit if the package is not installed
[ -x "$DAEMON" ] || exit 0
# Read configuration variable file if it is presentCode : Tout sélectionner
pi@raspberrypi /etc/init.d $ whereis vitalk
vitalk: /usr/local/bin/vitalk