<div dir="ltr"><div><span style="font-family:arial,helvetica,sans-serif"><font>Hello</font></span><span style="font-family:arial,helvetica,sans-serif"><font> Florian</font></span><span style="font-family:arial,helvetica,sans-serif"><font>,<br>
<br></font></span></div><span style="font-family:arial,helvetica,sans-serif"><font>My bash version:<br>$ bash --version<br>GNU bash, version 4.2.45(1)-release (x86_64-pc-linux-gnu)<br>Copyright (C) 2011 Free Software Foundation, Inc.<br>
License GPLv3+: GNU GPL version 3 or later <<a href="http://gnu.org/licenses/gpl.html">http://gnu.org/licenses/gpl.html</a>><br></font></span><div><span style="font-family:arial,helvetica,sans-serif"><font><br>I've changed the first line from the dls-file to "/bin/bash", now its going through the syntax error. But now I got the next command.<br>
</font></span><div><span style="font-family:arial,helvetica,sans-serif"><font><br>$ sudo /etc/init.d/dls start<br>Starting DLS Daemon <br>/etc/init.d/dls: line 131: startproc: command not found failed<br></font></span><div>
<span style="font-family:arial,helvetica,sans-serif"><font><br>My system is running Linux Mint Debian, how do I use the ' proc'  command or something similar to start the program. <br></font></span><pre><span style="font-family:arial,helvetica,sans-serif"><font>Regards,
Ralph Oosterveld<br></font></span></pre><br><pre><span style="font-family:arial,helvetica,sans-serif"><font>-----Original Message-----</font></span></pre><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
<pre><span style="font-family:arial,helvetica,sans-serif"><font>Hello,

On Fri, Jun 20, 2014 at 04:43:18PM +0200, Ralph Oosterveld wrote:
><i> >> sudo /etc/init.d/dls start
</i>><i> /etc/init.d/dls: 66 /etc/init.d/dls: Syntax error: "(" unexpected
</i>
seems like your shell does not support bash-like function definitions.
Which shell are you using?

Maybe a workaround: If your distribution also supports systemd, here is
a systemd service file that obsoletes the init script:


[Unit]
Description=Data Logging Service Daemon
Requires=localfs.service
After=localfs.service
After=syslog.target

[Service]
Type=forking
EnvironmentFile=/etc/default/dls
ExecStart=/opt/etherlab/dlsd -n 4096
Restart=always
RestartSec=5

[Install]
WantedBy=multi-user.target


-- 
Best regards,
Florian
</font></span></pre></blockquote><span style="font-family:arial,helvetica,sans-serif"><font><br></font></span></div></div></div></div>