Bad systemd configuration file Bad systemd configuration...

Topic: Bad systemd configuration file

Post Bad systemd configuration file
by rince1990 on 2018年9月10日

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 '='.


Reply with quote | Report
Post Re: Bad systemd configuration file
by rince1990 on 2018年9月11日

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

Reply with quote | Report
2024年11月24日 15:35
Loading...