Coder Social home page Coder Social logo

PID file not found about daemon HOT 6 OPEN

takama avatar takama commented on July 17, 2024
PID file not found

from daemon.

Comments (6)

takama avatar takama commented on July 17, 2024

Hi,
What version of the OS you use?

from daemon.

Zambiorix avatar Zambiorix commented on July 17, 2024

Ubuntu 16.04 LTS

from daemon.

takama avatar takama commented on July 17, 2024

Seems like you have system D. In this case the pid file location can be define here Please check your service file in the directory /etc/systemd/system/

from daemon.

Zambiorix avatar Zambiorix commented on July 17, 2024

Yes, I know that. I checked the service file already and the path for the pid file is there.
But when I go look for the pid file, it is not there...

The service is running fine

This is my service file

[Unit]
Description=Dodentocht API-development Service
Requires=mariadb.service
After=mariadb.service

[Service]
PIDFile=/var/run/dodentocht-api-development.pid
ExecStartPre=/bin/rm -f /var/run/dodentocht-api-development.pid
ExecStart=/usr/share/dodentocht/dodentocht-api-development run
Restart=on-abort

[Install]
WantedBy=multi-user.target

and when I cat it, nothing is found

cat: /var/run/dodentocht-api-development.pid: No such file or directory

from daemon.

takama avatar takama commented on July 17, 2024

Could you please check system logs? I guess it may be access problem. The services wants user or root access, there is difference in access to PID file under different user

from daemon.

wongoo avatar wongoo commented on July 17, 2024

I have the same problem!

linux verson: centos-release-7-2.1511.el7.centos.2.10.x86_64

generated service file /etc/systemd/system/multi-user.target.wants/wolfAgent.service:

[Unit]
Description=agent of wolf project
Requires=network-online.target
After=network-online.target

[Service]
PIDFile=/var/run/wolfAgent.pid
ExecStartPre=/bin/rm -f /var/run/wolfAgent.pid
ExecStart=/opt/wolfAgent
Restart=on-failure

[Install]
WantedBy=multi-user.target

the process has root permission:

-rwxr-xr-x  1 root root  9177662 May  5 20:13 wolfAgent

from daemon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.