[etherlab-users] Syntax error by starting dls (data logging service)

Florian Pose fp at igh.de
Mon Jun 23 12:24:30 CEST 2014


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

http://etherlab.org


More information about the etherlab-users mailing list