Linked Questions

289
votes
5answers
158k views

Difference between Login Shell and Non-Login Shell?

I understand the basic difference between an interactive shell and a non-interactive shell. But what exactly differentiates a login shell from a non-login shell? Can you give examples for uses of a ...
2
votes
1answer
3k views

Starting systemd service inside systemd service causes deadlock

I have a systemd service (let's call it first.service) that calls a bash script. In that bash script I first stop and then start another service with systemctl (e.g. systemctl start another.service. ...
1
vote
1answer
4k views

systemd “status=203/EXEC” error when creating new service

I've created a new service for a Python script that works when running standalone but gives errors below when run through systemd : Oct 02 12:17:09 raspberrypi systemd[1]: Started Read pressure And ...
1
vote
0answers
2k views

Reading/Writing to TTY using systemd

I have an application that writes and reads to an interactive terminal, and when I run it via the shell, it works as expected. However, when I run it as a systemd service, it seems as though the ...
1
vote
0answers
1k views

Running a binary as systemd service does not work

I have a go project and when I compile it I get your typical binary. If I call the binary directly from the command line with the adequate inputs, it runs perfectly well. I want to make this program ...
1
vote
1answer
943 views

Failure to start custom service using systemd [closed]

Good morning, We are trying to start a custom service on a Raspberry PIZero Wireless. The procedure we are using works on a PI3 under Ubuntu 14.04. The PiZero runs 2017-04-10-raspbian-jessie. I'll ...
0
votes
2answers
864 views

Purpose of $DISPLAY in X-Windows

What is the purpose of the $DISPLAY variable in X-Windows? How does it work? I'm running fedora off a VM and don't know if I'm running X-Windows correctly to even answer the question. I go to the ...
3
votes
1answer
608 views

Systemd sends exit signal to service on startup

This is my systemd service on ubuntu 16.04: [Unit] Description=Starts Caspar CG [Service] Type=forking WorkingDirectory=/home/broadcastingza/CasparCG/Server Environment=DISPLAY=:0 ExecStart=/bin/sh ....
1
vote
1answer
519 views

Oracle instant client module not found when PHP script run from a systemd service unit

A Debian server has a standard systemd service unit installed: phpsessionclean. It is called every 30', invoking the shell script /usr/lib/php/sessionclean, which in turn invokes a small inline php ...
1
vote
1answer
488 views

How to start git-daemon at boot?

I've created scripts to control starting, stopping, etc. of my git-daemon on Fedora28. I'm now attempting to link these scripts to a systemd service so git-daemon will be available after reboot. The ...
3
votes
1answer
371 views

Unattended upgrades won’t use mailx when run by Systemd

I have setup unattended-upgrades on servers running Raspbian (Raspbian GNU/Linux 9.4 (stretch)). Version of Unattended-upgrades: 0.93.1+nmu1 Updates work, but I am having problems with the email ...
0
votes
0answers
284 views

Running dot net application as daemon

I have been trying to run a simple dot net application as a daemon. I took a help from many of the below given links and did as suggested. Links: http://pmcgrath.net/running-a-simple-dotnet-core-...
0
votes
2answers
75 views

Can't access server after running it with a systemd service

I am trying to continuously run a nodeJs server on my VPS, I made a systemdservice and started it. I worked by my server is still not accessible, I can check the status and it works Okey : Service ...
0
votes
0answers
43 views

Maven application runs alone but not with systemd

I am trying to run Sphinx4-Http-server on RHEL. If I am in the directory /home/alex/Sphinx4-HTTP-server and run the command /home/alex/apache-maven-3.6.1/bin/mvn exec:java -Dexec.mainClass="org.jitsi....