1

I am facing a weird problem, my daemon is not started automatically by systemd. Please find my .service file below.

[Unit]
Description=System Log daemon
Requires=basic.target
After=basic.target

[Service]
Type=simple
ExecStart=/usr/bin/utild
Restart=always

[Install]
WantedBy=multi-user.target

This is my systemctl status output

● utility.service
   Loaded: not-found (Reason: No such file or directory)
   Active: active (running) since Thu 1970-01-01 00:00:33 UTC; 48 years 2 months ago
 Main PID: 1641 (utild)
   CGroup: /system.slice/systemlog.service
           └─1641 /usr/bin/utild

Could anyone tell me whats was the problem with this.

I reloded my system and got a new output for systemctl status

● systemlog.service - System Log daemon
   Loaded: loaded (/etc/systemd/system/multi-user.target.wants/utility.service)
   Active: active (running) since Thu 1970-01-01 00:00:31 UTC; 48 years 2 months ago
 Main PID: 1639 (sharedBuf)
   CGroup: /system.slice/utility.service
           └─1639 /usr/bin/sharedBuf

Still my daemon is not running. No luck with systemctl daemon-reload, but once I do systemctl restart, my daemon is started.

  • 2
    On the contrary , you have an outstanding runtime on that daemon! – Jeff Schaller Mar 28 '18 at 11:25
  • Sry jeff, i am new to writing systemd service file and I dont get you – Karthick Mar 28 '18 at 11:29
  • Did you maybe rename/move/delete the utility.service file after starting the service? – sneep Mar 28 '18 at 11:34
  • No, utility.service is there at /systemd/system – Karthick Mar 28 '18 at 11:37
  • What happens if you do systemctl daemon-reload? – sneep Mar 28 '18 at 11:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.