Questions tagged [services]

A Linux service is an application (or set of applications) that runs in the background waiting to be used, or carrying out essential tasks.

Filter by
Sorted by
Tagged with
2
votes
0answers
13 views

Restart user systemd after groupadd

I let systemd manage a service myservice in a user's homedir. When I add that user to a new group, the running service does not pick up that group. Even when restarting with systemctl --user restart ...
0
votes
1answer
27 views

can't start service linux 18.06

How can I start this service? What I'm trying to do is running a symfony4 command this file is created on /lib/systemd/system/file.service [Service] Type=simple ExecStart=/bin/bash -ce \ "/usr/bin/...
1
vote
1answer
54 views

How do I re-enable the lightdm.service?

At some point, in the past, I must have disabled lightdm service with: systemctl disable lightdm.service or something similar on my Debian with Cinnamon desktop. Unfortunately, I will now need it, ...
1
vote
1answer
32 views

How to make multiple systemd services start/stop as a group?

In Linux, regarding systemd: How do you make a service that starts a bunch of other services? ...acting like a container or group or parent. I have 5 or so systemd services: app.alpha.service app....
0
votes
2answers
30 views

How to generate “default” systemd .service file?

TL;DR How to generate an "editable" systemd .service file from an old system-V service? Recently, we had the issue that our home-grow "server manager" could not start a service on an "Ubuntu 16.04....
-1
votes
1answer
21 views

Failing service during boot, which one + solution?

System: Linux Mint 19.3 "Tricia" - Cinnamon (64-bit), based on Ubuntu 18.04, kernel 5.3.0-24-generic Problem duration: literally for a year or so. Problem description: since I have too large a ...
0
votes
1answer
19 views

systemd - .service default parameters

I'm replacing our old init.d Glassfish script with a .service file. I want the ability to start/stop domains one by one, but also a quick way to start/stop all of them at once. So far, I have this as ...
-1
votes
0answers
71 views

Systemd restart all services on failure

I currently can add Restart=on-failure RestartSec=5s To every service I have to make it restart on failure. This is way too time consuming. How do I make every service restart automatically on ...
0
votes
0answers
32 views

Why does systemd report job failure for some services with Type=simple?

According to systemd documentation, systemd will report success as soon as the child process have forked off. This is consistent with results from my quick test: $ cat /etc/systemd/system/test....
0
votes
0answers
39 views

Debian 10 Service not starting

Hello everyone, I want to create a service for Debian 10, but when I try to run it with the command “sudo systemctl start boot_time”, it doesn’t start. But it does start if I launch the script ...
1
vote
1answer
27 views

Restart service after suspend after a certain amount of time

I am running a service called "thinkfan" for controlling the fan speed of my thinkpad laptop. The service reads the data temperature from a temporary file in a folder. This file is created every now ...
0
votes
1answer
47 views

Use dynamic date in systemd unit

I try use date output as part of log file name in systemd unit. Here example: [Unit] Description=TCS minetest server unit [Service] Type=simple ExecStart=/home/tcs/minetest/bin/minetestserver --...
1
vote
0answers
33 views

AIX - how modify the service configuration of the sshd? [closed]

I need to change the config file (path) and destination location on FS for the 'SSH tectia server' therefore I also need configure Tectia service. On Linux with systemd, I would just change '...
0
votes
1answer
77 views

systemctl authenticating as other user

I have made this script that allows non-root access for a directory so a program can make changes to files in said directories. This .service has worked on a few machines and even on the same machine ...
-1
votes
1answer
22 views

Solaris services type status

There are following service states in Solaris: degraded – The instance is running or available to run, but is functioning at a limited capacity. disabled – The instance is not enabled and is ...
0
votes
0answers
14 views

Is it possible for “service status” to be wrong?

We're running centos 6.7, it doesn't have systemctl. We are using Wowza streaming engine which runs on Java, I'm reporting this issue to wowza as well, maybe it's a bug from their end. Sometimes when ...
0
votes
1answer
28 views

Ubuntu: starting one service causes others to be non responsive

Ubuntu 18.04 Server I have multiple services running, that are all something like following template: [Unit] Description=projectA After=multi-user.target [Service] WorkingDirectory=/media/...
3
votes
0answers
22 views

Mutually exclusive instances of the same systemd service template

I am interested if there's a better way to do mutually exclusive intances of the same systemd service template. Context: I am using SSH tunnels to connect over synergy between my laptop and which ...
0
votes
1answer
22 views

custom systemd service order

When you create two or more custom systemd services, how do you know which order they will be run? And will that order be sure thing? I am doing Type = idle which is supposed to mean Behavior of ...
0
votes
1answer
19 views

start a service before than another

I want to change the iptables at 3rd. By default, in directory /etc/rc3.d iptables service is S08iptables and I want to change it to S03iptables I executed the command below: ckconfig --level 3 ...
0
votes
0answers
92 views

systemctl start custom.service does not return

This is my custom service file (elastalert.service) [Unit] Description=Elastalert Documentation=https://elastalert.readthedocs.io/en/latest/elastalert.html#configuration Wants=network-online.target ...
0
votes
0answers
17 views

Custom Service Causing Boot Errors

Have not seen any post about this but it is possible I am searching for the wrong thing. My current specs are using a Raspberry Pi 3 B+ on the Stretch version of Debian. I am working on a service ...
0
votes
1answer
20 views

Systemd service vs .profile to start python program at boot

I have a python application running on a raspberry pi. Since the pi will be used mostly for display (no keyboard except for password input on boot because the pi user home directory is encrypted) the ...
4
votes
1answer
136 views

Restart systemd .service with .timer unit

I have the following systemd myscript.service unit that executes an script: [Unit] Description=MyScript Wants=time-sync.target [Service] Type=oneshot RemainAfterExit=true ExecStart=/usr/local/bin/...
0
votes
1answer
24 views

A clean way to set a daily running time for a program

Kind of a noob question but I'm looking to have my networking daemon (wicd), run every day on my machine, only from 5am-6am and 6pm-7pm, regardless of when my machine was turned on, in other words, if ...
2
votes
1answer
41 views

Patch service file

I want to add MY_SERVICE@SOME_SERVICE.service to OnFailure= and make it persistent. For example, in /lib/systemd/system/apache2.service, I want to have the line OnFailure=MY_SERVICE@apache2.service in ...
0
votes
1answer
50 views

systemd service does not last more than 6 hours

I am getting this error message in my logs: Stopping User Manager for UID 1000 I think that's the reason why my systemd service does not keep running. Does anyone know what that means, and how I ...
5
votes
1answer
103 views

Method to determine what `Type` of systemd service to use for any given application

I think I have a relatively good handle on the different Type of services which systemd can be configured for (e.g. simple, oneshot, etc). The docs provide a pretty reasonable overview and ...
22
votes
1answer
2k views

Why do popular TCP-using services have UDP as well as TCP entries in /etc/services?

I'm reading a book on network programming with Go. One of the chapters deals with the /etc/services file. Something I noticed while exploring this file is that certain popular entries like HTTP and ...
0
votes
1answer
17 views

How to change what systemctl restart does

As a preface, I've got a python script running flask being served by gunicorn running as a service. One command this service takes is a long running function that runs anywhere from 5-10 minutes. When ...
0
votes
1answer
35 views

Can't Start Fail2Ban

Lately I got 3 emails from Fail2Ban The jail nginx-http-auth has been stopped. The jail nginx-badbots has been stopped. The jail ssh has been stopped. Then I start SSH into my VM, this is the log ...
1
vote
2answers
66 views

Is Running a uWSGI/Gunicorn Server on Boot Possible w/ a venv?

I have a small .py/Flask application that I can run from the command line as a uWSGI or Gunicorn Server. Flask's site shows an abbreviated way to simply run a Flask app w/ these types of servers, i.e....
0
votes
1answer
47 views

How the keyword `After` works in systemd service?

I have prepared two services a.service and b.service. The a.service run using a.timer. a.service [Unit] Description=service a After=network-online.target Wants=network-online.target [Service] Type=...
1
vote
1answer
24 views

Write a systemd unit service to start an application with different arguments after an unclean exit

I need a systemd unit service to start an application without arguments and restart it with arguments should it crash. I have several applications written and they work. But you never know and ...
0
votes
1answer
58 views

Log files big size

I have log files for different services, those log files are taking up too much disk space, when I tried to truncate one of them with >run.log the file is truncated, but after some hours it got big ...
0
votes
1answer
32 views

How can I get a systemd service to finish before running a new service?

I want a service before systemd runs fstab and generates *.mount files to use, and some services that autostart on bootup that require that specific service to complete. Is there a way to have systemd ...
0
votes
1answer
61 views

Do world-writable systemd .service files created as symbolic links in /etc/systemd/system impose a security threat?

Do world-writable systemd .service files created as symbolic links in /etc/systemd/system impose a security threat? Would it be possible to somehow modify the links to target arbitrary .service files ...
0
votes
0answers
23 views

Edit a service created on Centos

I am trying to debug a service created on a unix server that I was told should be running and will just require a restart when there is an issue by using the following command: service controller-...
1
vote
1answer
108 views

Error “cannot open display” on systemd Service which needs graphical interface

I wanted to send a popup on boot with zenify: zenity --info --text="`hostname -I`" --title="Rpi Local IP" --display=:0.0 So here is my service file: [Unit] Description=Display IP at boot After=...
0
votes
1answer
34 views

systemd start Service B only after Service A has finished

I've been searching around for an hour or two but cannot seem to find the correct solution. Here's the situation: I have multiple services. I start up Service A, which runs a docker container. That ...
3
votes
2answers
2k views

systemd services fail with User= in service file

I am working on migrating some old System V type services over to "real" systemd services on RHEL 7/8. I have things running for Redhat 7, SLES 12 and SLES 15 just fine. But when I try to get a ...
4
votes
1answer
49 views

Ask for input prior to start a service

Somehow new to Linux, have used it in the past, though not as extensively as now. What I am trying to achieve here is to start a openvpn service as soon as the computer boots. I have partially ...
8
votes
3answers
2k views

systemd: Can't unmask root mount (-.mount)

(Dist: Debian 10) I have a reoccurring error message that mainly pops up when using systemctl (also when installing a package, and occasionally in a few other places that escape me), Unit -.mount is ...
1
vote
0answers
144 views

why a file has x permission for others but i can't run it with another user

I have installed splunk service on /opt. -r-xr-xr-x 1 splunk splunk 477488 May 19 2017 /opt/splunkforwarder/bin/splunk If I want to see the service status or restart it I should use these ...
1
vote
0answers
560 views

systemctl enable docker container service - failed

I basically follow the document in AWS https://docs.aws.amazon.com/AmazonECS/latest/developerguide/example_user_data_scripts.html I created a Centos 7 and tried to install docker, ese-agent within my ...
0
votes
1answer
104 views

How to not restart a systemd service, when the service it depends on is restarted

Let's say I have a service that depends on postgresql: I have it set up with the following directives After=postgresql.service Requisite=postgresql.service When I restart postgresql the above ...
1
vote
1answer
2k views

System service “Error: Unable to initialize GTK+, is DISPLAY set properly?”

/home/matthew/@/Sync/FreeFileSync "/home/matthew/@/Sync/Backup.ffs_batch" If I manually run the above, it works, but it doesn't if I run it via the following service: matthew@matthew-pc:~$ cat /lib/...
1
vote
0answers
216 views

Multiple ExecStartPre in sequence issues in a systemd service

In my systemd service file below, I wish to execute some things in a strict order using multiple ExecStartPre as shown below. /app/prescript should first run to completion, then /app/revertscript.sh ...
0
votes
0answers
181 views

systemd service will not start automatically at boot-up

I've been struggling to solve this for 2 or 3 days now. I am using Yocto to customize a Linux build. I have a systemd service called app2.service as below. [Unit] Description=app2 ...
0
votes
1answer
44 views

How to restart a systemd service whenever Chromium-browser opens/launches?

I have a systemd service that must be restarted whenever Chromium-browser opens/launches. [Unit] Description=Load cgroup configs After=multi-user.target [Service] Type=forking ExecStartPre=/bin/echo ...