Comments (6)
Hi,
What version of the OS you use?
from daemon.
Ubuntu 16.04 LTS
from daemon.
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.
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.
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.
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)
- how to drop privileges HOT 1
- Invalid daemon kind specified HOT 4
- Error: no such file or directory during installation on macOS Monterey
- can't stop daemon in ubuntu(wsl2 of win10)?
- error message EOF
- Cannot find windows process when it has spaces in it
- Start daemon on macos
- How to install daemon without sudo? HOT 2
- Set Darwin plist WorkingDirectory to where it was installed? HOT 1
- Can I use EnvironmentFile argument in systemd?
- Example does not work HOT 1
- Modeling the flow of the daemon HOT 1
- Additional control of systemd service file creation HOT 1
- Generic issue for language fixes HOT 1
- Add support for LaunchAgents on macOSX HOT 4
- Can I increase the "max file open" HOT 1
- PID legacy directory /var/run/
- daemon service does not work in suse11sp3 HOT 2
- daemon service does not work in windows10 HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from daemon.