Skip to main content

Questions tagged [systemd-unit]

For questions about the design of systemd units, the relationships between units, and writing [Unit] and [Install] sections of systemd unit files. It can also be used for questions about units which do not have their own tag such as systemd targets.

0 votes
1 answer
29 views

I need to mount either one of two devices to the same mount point. I cannot find a way to do that using .mount unit files because of the requirement that the .mount file name must be same as Where ...
rosewater's user avatar
  • 111
0 votes
1 answer
47 views

My application consists of two programs, and three processes: one main application, and two identical child processes. They are launched using some wrapper scripts, but (I think?) that it's not ...
Alessandro Bertulli's user avatar
0 votes
3 answers
71 views

I want to create a separate one-time action during boot. Does systemd support this? I have a script like this, but the generated unit is not started: #!/bin/bash set -ex s=y.service cd /run/systemd/...
olh's user avatar
  • 171
3 votes
2 answers
779 views

I have been able to create and run (as root) a systemd service that runs a "Hello World" script logged in as root. The script is just a shebang and an echo command. This is /etc/systemd/...
OcR19's user avatar
  • 31
1 vote
1 answer
102 views

I'm trying to run nebula (an overlay networking tool) as a systemd user service, NOT as a system service with user and group defined in the unit file. All examples about running a service with ...
user31422095's user avatar
1 vote
1 answer
43 views

I have a custom process that I'd like to execute through systemd. The process has some internal retry logic on failure. Is there a way that I make the process show up as a failure in systemd ...
Dave Butler's user avatar
1 vote
0 answers
65 views

I have four systemd services: {a,b,c,d}.service. d.service is the "main" service, and it is the one that parses the configuration file for all four. Typically, the four are started together. ...
chrysolepis's user avatar
4 votes
2 answers
200 views

I have a large set of systemd services that are part of a single target running on an embedded system with a relatively slow file system. When starting the target, our most significant startup delay ...
T. Waters's user avatar
0 votes
0 answers
38 views

I have a package to maintain, which has a WantedBy dependency. It must also save it's state after being updated (enabled/disabled, active/inactive after package was updated). Suddenly I needed to ...
modd1e's user avatar
  • 13
1 vote
1 answer
71 views

I need to write a systemd unit that: starts if another specified unit was started; starts if started manually; do not start at boot if specified unit didn't start at boot; do not stop if specified ...
modd1e's user avatar
  • 13
0 votes
0 answers
59 views

I am writing a program that I would like to have the ability to schedule an action. This would work similar to the the TIME option in shutdown, where the user specifies a time and that information ...
andiegoonie's user avatar
2 votes
0 answers
130 views

I have a systemd service for an application that is the primary workload for the machine it is running on. In my logs, I see that systemd restarts this service and as far as I can tell, the service is ...
Pieter Breed's user avatar
0 votes
1 answer
91 views

List missing services systemctl --state=not-found --all Output: UNIT LOAD ACTIVE SUB DESCRIPTION ● boot.automount not-found ...
metablaster's user avatar
0 votes
1 answer
184 views

I use a systemd service to start several processes when Ubuntu 20.04 starts up. # MyApp start app service [Unit] Description=MyApp start service Requires=network-online.target After=network-online....
sfzhang's user avatar
  • 103
3 votes
0 answers
232 views

With systemctl, I can start and stop the user service units of a different user using: sudo systemctl --user --machine=OTHER_USER@ stop their.service How can I achieve this behaviour with journalctl? ...
mallwright's user avatar

15 30 50 per page
1
2 3 4 5
13