Bad systemd configuration file Bad systemd configuration...

Argomento: Bad systemd configuration file

Post Bad systemd configuration file
di rince1990 su lunedì 10 settembre 2018

Hi everyone,

I'm not able to run dynuiuc as system service due to an invalid configuration file ( That's what I suppose) but I'm really new with Linux and I do not how to fix it, even if I made some research hours. Can anyone help me, please?

File: /usr/lib/systemd/system/dynuiuc.service
content:
[Unit]
Description=Dynu IP update client daemon

[Service]
Type=forking
PIDFile=/var/run/dynuiuc.pid
ExecStart=/usr/bin/dynuiuc
--conf_file /etc/dynuiuc/dynuiuc.conf
--log_file /var/log/dynuiuc.log
--pid_file run/dynuiuc.pid
--daemon
ExecReload=/bin/kill -HUP $MAINPID

[Install]
WantedBy=multi-user.target

________________________________________________________________________

error when executing: systemctl status dynuiuc.service

systemd[1]: /usr/lib/systemd/system/dynuiuc.service:9: Unknown lvalue '--log_file' in section 'Service'
systemd[1]: /usr/lib/systemd/system/dynuiuc.service:10: Unknown lvalue '--pid_file' in section 'Service'
systemd[1]: /usr/lib/systemd/system/dynuiuc.service:11: Missing '='.
systemd[1]: /usr/lib/systemd/system/dynuiuc.service:8: Missing '='.
systemd[1]: /usr/lib/systemd/system/dynuiuc.service:8: Missing '='.
systemd[1]: /usr/lib/systemd/system/dynuiuc.service:8: Missing '='.
systemd[1]: /usr/lib/systemd/system/dynuiuc.service:8: Missing '='.
systemd[1]: /usr/lib/systemd/system/dynuiuc.service:8: Missing '='.
systemd[1]: /usr/lib/systemd/system/dynuiuc.service:8: Missing '='.
systemd[1]: /usr/lib/systemd/system/dynuiuc.service:8: Missing '='.


Rispondi con citazione | Segnalare
Post Re: Bad systemd configuration file
di rince1990 su martedì 11 settembre 2018

after several trys I realized that

ExecStart=/usr/bin/dynuiuc
--conf_file /etc/dynuiuc/dynuiuc.conf
--log_file /var/log/dynuiuc.log
--pid_file run/dynuiuc.pid
--daemon

has to be in the same line , like this:

ExecStart=/usr/bin/dynuiuc --conf_file /etc/dynuiuc/dynuiuc.conf --log_file /var/log/dynuiuc.log --pid_file run/dynuiuc.pid --daemon


I hope this can help someone

Rispondi con citazione | Segnalare
lunedì 13 luglio 2020 08:08
Loading...