Skip to main content

All Questions

Tagged with
0 votes
0 answers
50 views

Systemd service for backup during boot or shutdown

Is it possible to configure systemd service that will delay the boot process (by about 10-20 minutes) to run a local backup script (something like dd if=/dev/sdb of=/dev/sdc) while filesystem is still ...
Andrey  Chesnakov's user avatar
1 vote
1 answer
31 views

Systemd: should I use wants/requires for already enabled service listed in After=

I have a systemd service named webserver.service that is wanted by multiuser.target (enabled by default on system). I have another service under another target named test.service that I want to run ...
Denny's user avatar
  • 13
0 votes
1 answer
31 views

How is the default nice value of a user's processes implemented in Ubuntu server 22.04.4 LTS

I've noticed that all services and processes with my user in Ubuntu Server 22.04.4 LTS have a nice value of 19. I connect to the server through ssh, and my ssh sessions also have a nice value of 19. I ...
AndresR's user avatar
  • 241
0 votes
0 answers
73 views

systemd: Failed to attach to cgroup...No such file or directory

OS Ubuntu-22.04 Kernel-version 6.2.0-39-generic systemd --version systemd 249 (249.11-0ubuntu3.12) Problem description: From a perl script I am trying to stop and start myservice, this script has no ...
RaGa__M's user avatar
  • 169
0 votes
1 answer
31 views

Systemd timer only starts when service is stopped

I have a service that runs a python script: [Unit] Description="Daily python service" [Service] WorkingDirectory=/home/ubuntu/python_project/ ExecStartPre=/bin/bash -c 'truncate -s 0 /var/...
RudyGoburt's user avatar
1 vote
2 answers
62 views

systemd.network management

I try to follow the manual example from man systemd.network: # /etc/systemd/network/27-xfrm.netdev [NetDev] Name=xfrm0 Kind=xfrm [Xfrm] InterfaceId=7 # /etc/systemd/network/27-eth0.network [Match] ...
zerkms's user avatar
  • 829
0 votes
1 answer
137 views

Fake /etc/os-release for an application to make it think it runs on Ubuntu instead of Debian

I have to use a third party software which officially supports RHEL, SuSE (SLE[DS]) and a certain Ubuntu LTS release. Unfortunately, I use Debian on all my systems. If I run the installer script of ...
MrSnrub's user avatar
  • 135
0 votes
0 answers
37 views

How to force systemd unit to log into journal instead of syslog

For some time now I'm trying to force systemd unit I created to log command output to systemd journal. It logs only to syslog. Here is my config: $ cat /etc/systemd/system/sf-synchronize.service [...
piotrekkr's user avatar
  • 569
1 vote
0 answers
99 views

Ubuntu service - pq: password authentication failed for user "root"

I have an application running on Ubuntu server that's using PostgreSQL. I can run the application's executable (as a non-root user) from the project's directory. I have created a service for this ...
Saurabh's user avatar
  • 111
0 votes
1 answer
69 views

How to let kea-dhcp4-server wait on postgresql database being ready during boot on Ubuntu 22.04?

My kea-dhcp4-server has a dependency on my postgresql database. After a fresh boot the dhcp server has an error like: sudo systemctl status kea-dhcp4-server × kea-dhcp4-server.service - Kea IPv4 ...
Henry Roeland's user avatar
0 votes
1 answer
45 views

systemd+ - cannot stop mongo service

I noticed mongo was listening on port 27017 I tried to stop it with: $ sudo systemctl stop mongod Failed to stop mongod.service: Unit mongod.service not loaded. and then I did: sudo service mongod ...
Alexander Mills's user avatar
0 votes
1 answer
113 views

systemd service restarting without any obvious cause

I have two Spring applications that chug along nicely, nothing special happening, and then out of the blue the applications restart; journalctl shows these lines: Jan 15 04:43:11 nyota.softworks.nl ...
tbeernot's user avatar
0 votes
0 answers
148 views

How can i run a ros2 launch file on startup?

I have a python file running the ros2 launch file process = subprocess.Popen(["/opt/ros/humble/bin/ros2", "launch", "blaunch_pkg", "on_startup.launch.py"]) ...
Danana's user avatar
  • 11
0 votes
1 answer
60 views

How to indicate hour range in Timer using OnCalendar?

systemd 219 version Ubuntu 22.04.2 LTS [Unit] Description=Run myscript.service every 5 minutes [Timer] OnCalendar= *-*-* 10-23:10/5:00 Persistent=true [Install] WantedBy=timers.target I need to run ...
Aigerim's user avatar
0 votes
0 answers
33 views

migrating app from upstart to systemctl failing with 'dead'

new to this area, and trying to setup this project on Ubuntu 20.04.6 LTS https://github.com/thoukydides/heatmiser-wifi the project is no longer maintained, but the instructions talk about using ...
nmpuk's user avatar
  • 1

15 30 50 per page
1
2 3 4 5
20