Categories
Development Linux

can’t start service linux 18.06

How can i start this service?, what i’m trying to do is running a symfony4 command and capture its verbosity into a single file
code below

ExecStart=/bin/bash -ce  "/usr/bin/php -f /home/roger/Documents/T-Docs/symfony/bin/console app:worker:payroll-parser -v > >(tee -a /tmp/workers.log) 2> >(tee -a /tmp/workers.log)"
Restart=always
RestartSec=5

output error

Jan 13 19:06:57 roger systemd[1]:
/etc/systemd/system/payrollprocess.service:6: Assignment outside of
section. Ignoring. Jan 13 19:06:57 roger systemd[1]:
payrollprocess.service: Service lacks both ExecStart= and ExecStop=
setting. Refusing. Jan 13 19:09:23 roger systemd[1]:
/etc/systemd/system/payrollprocess.service:3: Assignment outside of
section. Ignoring. Jan 13 19:09:23 roger systemd[1]:
/etc/systemd/system/payrollprocess.service:5: Assignment outside of
section. Ignoring. Jan 13 19:09:23 roger systemd[1]:
/etc/systemd/system/payrollprocess.service:6: Assignment outside of
section. Ignoring. Jan 13 19:09:23 roger systemd[1]:
payrollprocess.service: Service lacks both ExecStart= and ExecStop=
setting. Refusing. Jan 13 19:20:13 roger systemd[1]:
/etc/systemd/system/payrollprocess.service:3: Assignment outside of
section. Ignoring. Jan 13 19:20:13 roger systemd[1]:
/etc/systemd/system/payrollprocess.service:5: Assignment outside of
section. Ignoring. Jan 13 19:20:13 roger systemd[1]:
/etc/systemd/system/payrollprocess.service:6: Assignment outside of
section. Ignoring. Jan 13 19:20:13 roger systemd[1]:
payrollprocess.service: Service lacks both ExecStart= and ExecStop=
setting. Refusing.

Leave a Reply

Your email address will not be published. Required fields are marked *