Go to the source code of this file.
Functions | |
start_tidy should_start echo n Starting DTN | daemon (tidy mode)..." $ENV $DAEMON $ARGS -t > /dev/null 2>/dev/null & |
Variables | |
NAME | |
stop echo n Stopping DTN daemon...$CONTROL | stop |
restart echo n Restarting DTN daemon...$CONTROL stop $ENV $DAEMON $ARGS dev null dev null &logrotate echo n Rotating logs for DTN daemon...$CONTROL | logrotate |
*echo | Usage |
start_tidy should_start echo n Starting DTN daemon | ( | tidy | mode | ) |
Referenced by main(), and dtn::DTNServer::start().
restart echo n Restarting DTN daemon...$CONTROL stop $ENV $DAEMON $ARGS dev null dev null& logrotate echo n Rotating logs for DTN daemon...$CONTROL logrotate |
Definition at line 46 of file dtn.init.d.
Initial value:
dtnd DAEMON=/usr/bin/$NAME CONTROL=/usr/bin/$NAME-control ARGS="-d -o /var/log/dtnd.log" PIDFILE=/var/run/$NAME.pid # note: SSD is required only at startup of the daemon. SSD=`which start-stop-daemon` ENV="env -i LANG=C PATH=/bin:/usr/bin:/usr/local/bin" trap "" 1 cd / should_start() { if [ ! -x $DAEMON ]; then echo "$NAME is not executable, not starting" exit 0 fi } case "$1" in start) echo -n "Starting DTN daemon..." should_start start-stop-daemon --start --exec $DAEMON -- $ARGS
Definition at line 10 of file dtn.init.d.
Definition at line 41 of file dtn.init.d.
* echo Usage |
Definition at line 57 of file dtn.init.d.