Linked Questions

14
votes
3answers
11k views

Systemd and process spawning

Don't normally post here but I am ripping my hair out over this one. I have a Python script that forks when it launches, and is responsible for starting a bunch of other processes. This script used ...
1
vote
3answers
1k views

Issues creating and enabling custom systemd services for ddclient

I am using ddclient/DDNS under Ubuntu 16.04 LTS to update the IPs which two domains I own (from NameCheap) have a DNS record for (this is working). However, the issue is that with having two domains, ...
2
votes
2answers
3k views

systemd failing to recognize pid file

So I am trying to start a service on systemd enabled system. Name of service is ossec-hids-authd which is the authentication engine(agents) in ossec(Intrusion Detection Software). When I go and start ...
1
vote
2answers
7k views

Why is systemd stopping service immediately after it is started?

I have a C++ based application which I'm running(executable) as a daemon with systemd. Unit File: [Unit] Description=Console Service After=network.target [Service] Environment="USER=ubuntu" "Path=/...
3
votes
1answer
184 views

Why forking is used in a unit file of a service?

My nginx unitfile is following, [root@arif ~]# cat /usr/lib/systemd/system/nginx.service [Unit] Description=The nginx HTTP and reverse proxy server After=network.target remote-fs.target nss-lookup....
3
votes
1answer
3k views

Systemd timeout because it doesn't detect daemon forking

I'm currently developping a systemd daemon. The problem I'm facing is that the daemon is killed 1m30s after beeing launched because the forking is not detected. I'm using the int daemon(int nochdir, ...
1
vote
1answer
827 views

systemctl fails to accurately report status of daemons if they were started via mechanism other than systemctl

There are two mechanisms to start/stop my program "abc" systemctl service file inside /usr/lib/systemd/system/abc.service /etc/abc init script abc script will invoke all the daemons. But systemctl ...
1
vote
1answer
3k views

CentOS 7 - why the service file is not working to run my bash script?

How to make my bash script as service in CentOS 7? following is failing. $ cat /etc/systemd/system/mybash.service [Unit] Description=mybash Service After=network.target [Service] Type=simple User=...
0
votes
1answer
509 views

Serivce Restarts every 90 seconds

We have written a service script to start an executable on system start up. The service script restarts every 90 seconds on a consistent basis. If we disable the service and run the executable, it ...
1
vote
0answers
52 views

Systemd service starts only one of two processes, but only on OS reboot

I have a systemd unit file that starts two completely separate processes, apache and tomcat (and before you comment on it, I know I should just make two separate unit files, but permissions on this ...