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
1 answer
28 views

Official definition of System V service management

Several sources online discusses the difference between Linux systemd service management facility and that of System V. While there's an official website for systemd, I found no official definition ...
  • 503
0 votes
1 answer
12 views

Is it possible to listen to a signal for when a systemd service has crashed/restarted?

This is a bit of a newbie question on systemd services, but let's say we have two systemd daemons, and for one of them its important to know whether the other one has crashed or restarted. Is it ...
0 votes
1 answer
23 views

How can I get MariaDB to resume action?

I was working on my Wordpress site, and to get a non-database, HTML version suitable for my datamine, such as is running correctly at https://orthodoxchurchfathers.com and https://searchgkchesterton....
0 votes
1 answer
12 views

Cryfs automount using service

I want to mount a cryfs Filesystem automatically after startup. I installed a new service: [Unit] After=network.target media-SB01_Cloud.mount [Service] ExecStart=/root/scripts/...
0 votes
0 answers
39 views

Target any service instance when using "PartOf" in a systemd unit file

I am trying to configure a wildfly daemon to restart whenever postgresql restarts (which happens sometimes due to Debian's unattended-upgrades). I tried to solve this by putting PartOf=postgresql....
0 votes
0 answers
7 views

Name of service/process for when copying data from mac to iphone

I mean when you copy something from your mac to the files app on iphone, not sync. Google gets confused by this question and all the results are 'how to transfer data from mac to iphone' etc. I want ...
  • 274
1 vote
1 answer
31 views

How to start a 3rdparty systemd service from a debian package

I have a debian package which contains configuration for systemd-networkd e.g. I configure my interface IP. That only makes sense if systemd-networkd is running. Because of that I want to ensure that ...
0 votes
0 answers
25 views

Powertop systemd service Status - Not sure if it is working

I enabled the powertop service. It always shows the following: $ sudo systemctl status powertop -l ○ powertop.service - Extend the battery life of laptop Loaded: loaded (/lib/systemd/system/...
  • 1,440
1 vote
0 answers
17 views

Building a lab, interfaces file issue, networking service won't restart because of ifup

Hello (beginner to linux networking), I'm trying to build a lab in VirtualBox with a Debian GLPI server for school, the VM has 2 network interfaces : a NAT one in dhcp (eth0) and the other one (intern)...
  • 11
0 votes
1 answer
50 views

Systemd service fails to start Python project

I am trying to make a project written on Python work on a server. I created the following service file: [Unit] Description=My bot service After=multi-user.target [Service] Type=simple Restart=always ...
  • 21
0 votes
0 answers
56 views

docker permissions problems after moving the docker root

After having to move my docker directory from /var/lib/docker to another volume for (lack of) space reasons, permissions to the new folders are apparently revoked by docker itself. I can run ...
0 votes
1 answer
115 views

How to fail service so that SERVICE_RESULT contains "start-limit-hit"

So, I have a systemd service which executes a script in ExecStopPost: [Unit] Description=foobar-test StartLimitBurst=3 StartLimitIntervalSec=120 [Service] Type=simple ExecStart=/do_something.sh ...
  • 3
0 votes
1 answer
22 views

Correct 'type' for startup service

I have a LCD panel that is run through a python script, the panel takes in key-press inputs so the script is always listening. I'm trying to create a startup service that would run the script as soon ...
  • 103
1 vote
1 answer
37 views

Linux Service vlcpulse access denied

I have a service running on Raspbian OS 11 lite on a Raspberry 3, which should play audio for me. [Unit] Description=My script to monitor the shutdown button After=multi-user.target [Service] ...
  • 11
0 votes
1 answer
31 views

Can't start service manually after `sudo systemctl disable`

I have a service that starts at boot, but I want to control it manually. Everywhere I go it says sudo systemctl disable service should do what I need, but it seems to remove the service entirely so I ...
0 votes
1 answer
12 views

Flask Systemd Service not able open video file under s3 bucket mounted folder

My flask app is running as service but it is not able to read video file from s3bucket mounted folder. OpenCV does not throw error when it fails to load but returns 0 frame array. So we understand ...
1 vote
0 answers
25 views

Interrupt service script on reboot

My knowledge in this field is limited, so please excuse my ignorance and stupidity. I've used these two questions/solutions (first and second) to create a .service that will run a python script when a ...
  • 111
1 vote
1 answer
35 views

Config files not being read

This is a super issue weird that I cannot for the life of me figure out, so would be very grateful for assistance. My home server is an old Mac-Mini with 2 external HDD's in RAID1 using mdadm running ...
  • 11
2 votes
0 answers
86 views

Systemd service creation of Prometheus

Oracle Linux 8 Trying to start prometheus from systemd and getting the status=203/EXEC error. I can copy/paste the commands from /etc/systemd/system/prometheus.service and it will start without error....
1 vote
2 answers
107 views

How to make a systemd service restart some other service?

I have an application that reads from a database on startup which is updated daily by a separate updater, described by the following systemd units: application.service: [Unit] Description=Application ...
  • 168
0 votes
1 answer
72 views

Autostart services in System V system

In systemD, we need to execute this command to autostart an application on system startup: sudo systemctl enable <service-name>. What will be the equivalent command for sysvinit since chkconfig ...
  • 119
1 vote
0 answers
23 views

systemd-networkd-wait-online failing with SocketCAN interface

I have configured a SocketCAN interface, can0 (confirmed working using can-utils). I have the below .network config file, so that systemd-networkd brings up the interface on boot. #/etc/systemd/...
0 votes
1 answer
24 views

Run group of systemd services and then run a final service

I want to realize a scenario similar to the following: Every day at XX:00 an umbrella service is started, e.g. daily_tasks. When the service starts other services are started that can run in parallel, ...
2 votes
0 answers
116 views

WSL service logging like journald

I am running a WSL instance on my machine which starts a bunch of services like atd. What I would like to have is to have an ability to lookup the logs of a specific service like I would do using ...
1 vote
1 answer
19 views

debug notification sent with failure on exit systemd service

I have two services: service A and serviceB. Service A is of the type notify and service B is of type simple. Service B has After=serviceA.service set to ensure service B starts only after service A ...
0 votes
2 answers
66 views

System V init service can't recongnise mongod

I have been following official guide for installing mongodb but it wont run as a service. When i try $ whereis mongod mongod: /usr/bin/mongod /etc/mongod.conf /usr/share/man/man1/mongod.1.gz but step ...
2 votes
1 answer
161 views

Start a service and Run/load a script with ssh or autossh, remote port forwarding in the background "-f" to execute more/next commands in the script!

My config: debian 10.9 4.19.0-19-amd64 OpenSSH_7.9p1 Debian-10+deb10u2, OpenSSL 1.1.1d 10 Sep 2019 autossh 1.4g GNU bash, 5.0.3(1)-release (x86_64-pc-linux-gnu) I start a service in /etc/systemd/...
0 votes
1 answer
19 views

Friendlyarm deleted notofocation-daemon service

I did some tests with my device with FriendlyArm and broke some important things. I can't login into the system. /var/log/lightdm/seat0-greeter.log contains a lot of (nm-applet:987): libnm-CRITICAL **...
  • 13
0 votes
0 answers
93 views

Running python as service in ubuntu

I am currently trying to run python as a service in ubuntu. I am running into an error when trying to run it as a service. This is what my service looks like: [Unit] Description=PythonAPI [Service] ...
1 vote
0 answers
207 views

configure ngrok as service > permission denied

I have a permissions error while attempting to setup ngrok as a service. $ sudo ngrok service install --config /home/m/snap/ngrok/79/.config/ngrok/ngrok.yml INFO[08-12|19:11:50] open config file ...
0 votes
1 answer
2k views

Warning: some journal files were not opened due to insufficient permissions

I receive this warning when running systemctl status <servicename>.service after manually stopping my newly installed servce. "Warning: some journal files were not opened due to ...
0 votes
0 answers
173 views

Unit Not Found after daemon-reload

My service is running as expected, I can start, top, restart, status. But if I run systemctl daemon-reload, running systemctl start, stop, and status for my services results in the error: Failed to ...
0 votes
1 answer
340 views

nodejs server running from service giving error "Failed to execute command: Exec format error"

I'm not very good at server admin work, forgive me if I'm missing any steps. I have a node express server that runs just fine normally, I was deploying it with forever but now I would like to move it ...
0 votes
0 answers
32 views

executing systemd service with root permissions

I am planning to create a systemd service which whould perform some sudo tasks. Normally when I would interact with the shell I would do something in the lines of: sudo tune2fs -m 0 /dev/sdx {...
1 vote
1 answer
452 views

Permission denied (publickey,password) on SSH connection when run as a service

I have a bash script, /home/localuser/backup-script.sh, with this snippet inside of it: rsync -avzh \ -e "ssh -i /home/localuser/.ssh/id_ed25519" \ /home/localuser/backups/file-to-backup....
  • 111
1 vote
2 answers
240 views

Creating a systemd service in ubuntu that can be started/stopped

I have build a server that ships in executable format, and I want to register it as a service that I can start/stop/restart. I have read the following questions and many others like it > How can I ...
  • 33
0 votes
1 answer
20 views

Correct usage/location of tmpfs for a service in Raspberry Pi?

I wrote simple SystemD service for Raspberry Pi, which collects some data and writes it temporarily to /run/user/1000 It worked, but on reboot I found, that this directory doesn't exist until user ...
  • 2,725
1 vote
0 answers
114 views

How to find systemd services that changed on disk?

Say I have a systemd service called example.service. When I modify that file and then run systemctl status example.service I get the following warning: Warning: The unit file, source configuration ...
  • 355
0 votes
0 answers
13 views

Prevent services from starting on boot without accessing system prior to boot

Apologies for the poorly worded title (taking suggestions on better ones!) but I am unsure how to describe what I am trying to do. Allow me to explain the situation: I have a number of production VMs (...
3 votes
0 answers
402 views

How do I resolve an error with the pNFS mapping daemon?

I get an annoying error on my Ubuntu Server installation with nfs-blkmap. Running the command ~$ systemctl status nfs-blkmap.service Yields the following × nfs-blkmap.service - pNFS block layout ...
  • 1,484
0 votes
0 answers
291 views

Unable to start service nexus on Ubuntu

I'm trying to run Nexus on Ubuntu 22.04 EC2 instance of type t2.micro I have followed this article to do so https://www.fosstechnix.com/how-to-install-nexus-repository-on-ubuntu/ However when i run ...
  • 1
0 votes
0 answers
78 views

systemd service file: including dynamic timestamp in log filenames defined in StandardOutput= and StandardError=

I've created a systemd service unit file, and since systemd version 240+, we can just set the STDOUT + STDERR outputs to go directly into files, like this: StandardOutput=append:/tmp/my-service.log ...
  • 333
0 votes
0 answers
42 views

Systemd service run before kubernetes stops

I am trying to create my own service which executes a kubectl command when the machine stops. My service is: [Unit] Description=Run my custom task at shutdown Requires=k3s.service [Service] Type=...
  • 101
0 votes
0 answers
37 views

Openstack Services Status Ubuntu

i installed openstack on Ubuntu server LTS 20.4 . in centos 7.9 usually i install a package openstack-utils which let me run openstack-status and i can see all services status at same time. how should ...
2 votes
0 answers
432 views

Add syslogd as service on Alpine on Docker container

I have a program which needs syslog to run to correctly work. I am working in an Alpine container with version 3.16.0. As I'm getting multiple errors from the program (weewx), I understood that syslog ...
1 vote
0 answers
406 views

Is there any way to start services from docker image, can't start pre-enabled systemd images (255)

I want to start some service from this section tryed everything up until now and run out of ideas. I have a debian 10 VPS with no root access and need i have been looking forward to find another way ...
0 votes
1 answer
337 views

How to setup a service that accepts input via ssh, run python scripts using the input and then return the output over ssh?

I have a server that runs ubuntu and has GPUs that run large deep learning models. I would like for this server machine to first accept requests that contain an input over SSH, then feed that input to ...
2 votes
1 answer
846 views

Why some services got masked in ubuntu 20.04

On an Ubuntu 20.04 installation, how can I find out, why some services got masked? There's only answers about specific services, but I can't find any info about how to troubleshoot that behavior. For ...
0 votes
1 answer
829 views

How to inherit XDG_SESSION_TYPE in systemd units?

My current desktop environment: Plasma Wayland. Many GUI applications can't be launched from within Emacs daemon (started by e systemd unit) unless XDG_SESSION_TYPE is set to "wayland". It's ...
0 votes
0 answers
216 views

Access to the display when loading the systemd service

I am writing a bootable service in C and D languages. There is a database of users with thin client settings. I access this database over the network during the download and get from there the data of ...

1
2 3 4 5
20