Hello, I see something went wrong with the attachment, so here the corresponding file. I hope this will help solve the problem.
Thank you in advance, Ralph Oosterveld -----Original Message----- > > Hello, > > When I want to start the data logging service using the next command, I get > a syntax error. > > >> sudo /etc/init.d/dls start > /etc/init.d/dls: 66 /etc/init.d/dls: Syntax error: "(" unexpected > > The dls-file is attached and the following are the things I did before > according the install documentation. > > # tar xjf dls-1.3.1.tar.bz2 > # cd dls-1.3.1 > # ./configure > # make > # sudo make install > > I don?t have a /etc/sysconfig folder and instead of this I am using > /etc/default the same I did by installing EtherCAT. So I also edited the > following files. > > [etc/init.d/dls] > SYSCONFIG=/etc/sysconfig/dls >to> SYSCONFIG=/etc/default/dls > > [etc/profile.d/dls] > . /etc/sysconfig/dls >to> . /etc/default/dls > > Then copied by using the next commands. > # cd /opt/etherlab > # sudo cp etc/init.d/dls /etc/init.d/dls > # sudo cp etc/sysconfig/dls /etc/default/dls > # sudo cp etc/profile.d/dls.sh /etc/profile.d/dls.sh > # sudo insserv dls > > I hope this can be solved. > > Thank you in advance, > *Ralph Oosterveld* > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://lists.etherlab.org/pipermail/etherlab-users/attachments/20140620/3e46baa4/attachment-0001.html > > > > ------------------------------ >
#!/bin/sh #----------------------------------------------------------------------------- # # DLS init script # # $Id: init.sh,v 5ddbbb894dc7 2011/08/17 13:21:30 fp $ # # This file is part of the Data Logging Service (DLS). # # DLS is free software: you can redistribute it and/or modify it under the # terms of the GNU General Public License as published by the Free Software # Foundation, either version 3 of the License, or (at your option) any later # version. # # DLS is distributed in the hope that it will be useful, but WITHOUT ANY # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more # details. # # You should have received a copy of the GNU General Public License along # with DLS. If not, see <http://www.gnu.org/licenses/>. # #----------------------------------------------------------------------------- ### BEGIN INIT INFO # Provides: dls # Required-Start: $local_fs $remote_fs $syslog $network # Should-Start: $time $ntp msr etherlab # Required-Stop: $local_fs $remote_fs $syslog $network # Should-Stop: $time $ntp msr etherlab # Default-Start: 3 5 # Default-Stop: 0 1 2 6 # Short-Description: Data Logging Service # Description: ### END INIT INFO #----------------------------------------------------------------------------- SYSCONFIG=/etc/default/dls test -r $SYSCONFIG || { echo "$SYSCONFIG not existing"; if [ "$1" = "stop" ]; then exit 0; else exit 6; fi; } . $SYSCONFIG #----------------------------------------------------------------------------- if [ -n "$DLS_USER" ]; then DLSD_OPTIONS="-u $DLS_USER $DLSD_OPTIONS" fi if [ -n "$DLS_DIR" ]; then DLSD_OPTIONS="-d $DLS_DIR $DLSD_OPTIONS" fi #----------------------------------------------------------------------------- DLSD=/opt/etherlab/bin/dlsd PIDFILE=$DLS_DIR/dlsd.pid KILL_PARAM="-t600 -p $PIDFILE" #----------------------------------------------------------------------------- function exit_success() { if [ -r /etc/rc.status ]; then rc_reset rc_status -v rc_exit else echo " done" exit 0 fi } #----------------------------------------------------------------------------- function exit_running() { if [ -r /etc/rc.status ]; then rc_reset rc_status -v rc_exit else echo " running" exit 0 fi } #----------------------------------------------------------------------------- function exit_fail() { if [ -r /etc/rc.status ]; then rc_failed rc_status -v rc_exit else echo " failed" exit 1 fi } #----------------------------------------------------------------------------- function exit_dead() { if [ -r /etc/rc.status ]; then rc_failed rc_status -v rc_exit else echo " dead" exit 1 fi } #----------------------------------------------------------------------------- if [ -r /etc/rc.status ]; then . /etc/rc.status rc_reset fi case "$1" in start) echo -n "Starting DLS Daemon " if ! startproc -p$PIDFILE $DLSD $DLSD_OPTIONS > /dev/null; then exit_fail fi sleep 1 if checkproc -p$PIDFILE $DLSD; then exit_success else exit_fail fi ;; stop) echo -n "Shutting down DLS Daemon " if killproc $KILL_PARAM $DLSD; then exit_success else exit_fail fi ;; restart) $0 stop || exit 1 $0 start ;; status) echo -n "Checking for DLS Daemon " if checkproc -p$PIDFILE $DLSD; then exit_running else exit_dead fi ;; *) echo "USAGE: $0 {start|stop|restart|status}" ;; esac if [ -r /etc/rc.status ]; then rc_exit else exit 1 fi #-----------------------------------------------------------------------------
_______________________________________________ etherlab-users mailing list etherlab-users@etherlab.org http://lists.etherlab.org/mailman/listinfo/etherlab-users