Bad systemd configuration file Bad systemd configuration...

Topic: Bad systemd configuration file

Post Bad systemd configuration file
by rince1990 on Monday, September 10, 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 '='.


Reply with quote | Report
Post Re: Bad systemd configuration file
by rince1990 on Tuesday, September 11, 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

Reply with quote | Report
Monday, November 25, 2024 7:47 AM
Loading...