lilzz
Posts: 411
Joined: Sat Nov 30, 2013 5:27 pm

config file values into /etc/default

Mon Mar 10, 2014 8:51 pm

Code: Select all

LOG_FILE=/var/log/webiopi
CONFIG_FILE=/etc/webiopi/config

PATH=/sbin:/usr/sbin:/bin:/usr/bin
DESC="WebIOPi"
NAME=webiopi
HOME=/usr/share/webiopi/htdocs
DAEMON=/usr/bin/python
DAEMON_ARGS="-m webiopi -l $LOG_FILE -c $CONFIG_FILE"
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME

Code: Select all

# Read configuration variable file if it is present
[ -r /etc/default/$NAME ] && . /etc/default/$NAME
1)How does the configuration file /etc/webiopi/config values go into /etc/default/webiopi?From above, I didn't see the command to do that.

Return to “General discussion”