[etherlab-users] Syntax error by starting dls (data logging service)
Ralph Oosterveld
r.n.oosterveld at student.utwente.nl
Mon Jun 23 17:01:43 CEST 2014
Hello Florian,
My bash version:
$ bash --version
GNU bash, version 4.2.45(1)-release (x86_64-pc-linux-gnu)
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html
>
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.
$ sudo /etc/init.d/dls start
Starting DLS Daemon
/etc/init.d/dls: line 131: startproc: command not found failed
My system is running Linux Mint Debian, how do I use the ' proc' command
or something similar to start the program.
Regards,
Ralph Oosterveld
-----Original Message-----
Hello,
>
> On Fri, Jun 20, 2014 at 04:43:18PM +0200, Ralph Oosterveld wrote:
> >* >> sudo /etc/init.d/dls start
> *>* /etc/init.d/dls: 66 /etc/init.d/dls: Syntax error: "(" unexpected
> *
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20140623/1d44245c/attachment-0004.htm>
More information about the Etherlab-users
mailing list