Skip to main content

All Questions

Tagged with
0 votes
0 answers
38 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
0 votes
1 answer
66 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
527 views

Failed to hibernate system via logind: Not enough swap space for hibernation

I'm trying to hibernate via systemctl hibernate but get Failed to hibernate system via logind: Not enough swap space for hibernation LANG=C swapon NAME TYPE SIZE USED PRIO /swap/swapfile ...
Yaroslav Minieiev's user avatar
1 vote
1 answer
771 views

Where does "journalctl" read configurations from?

I have installed kubelet 1.26.0 on my Ubuntu 22.04 machine. Previously I had 1.25.2 version that I removed by apt remove kubelet command and reinstalled it with apt install kubelet command. Wherever I ...
best_of_man's user avatar
0 votes
0 answers
222 views

Iterating over mount points on startup with python script executed as a service with systemd

I want to iterate over mounting points with a Python script on a system startup. The script works fine on the fully booted system (even when called as sudo systemctl start launcher.service) but fails ...
Tony's user avatar
  • 1
2 votes
1 answer
579 views

how to know that a template systemctl has been stopped

I think my question is similar to this one: https://askubuntu.com/questions/941775/stopped-custom-services-controlled-by-systemd-do-not-appear-in-systemctl-list-un But it didn't get any useful answer, ...
Julien Greard's user avatar
2 votes
0 answers
2k views

Start ngrok via systemctl services on Ubuntu Server

I am running a Ubuntu Server 22.04.1 and trying to run ngrok at startup using systemd, to create a ssh tunnel. Current state: BWS_ngrok.service under /etc/systemd/system/BWS_ngrok.service ngrok.yml ...
Jannis's user avatar
  • 21
0 votes
1 answer
952 views

Unable stop service using systemd the process created by using command

I managed to start the service in 2 different ways Using normal command root@ip-172-31-35-92:/#/usr/bin/mongod --config /etc/mongod_27018.conf & Using systemd service. service mongod_27018 ...
Achar007's user avatar
0 votes
0 answers
117 views

Apache2: Hosting Multiple Sites (Ubuntu Server)

I am new working with system.d and services on ubuntu/debian. I'm trying to serve multiple sites on the same Apache2 (I am note sure if I should have 3 apache2 folders for the each service). The ...
Wiimortal's user avatar
3 votes
1 answer
1k views

How should I use `systemctl --global`?

Systemd has a flag --global, on my distribution, Ubuntu, I'm finding a catch-22. If I run it as an unprivileged user, systemctl will not have the proper permissions to copy the unit file into /etc. ...
usretc's user avatar
  • 658
1 vote
1 answer
427 views

dotnet run --ulrs on a systemctl service

I need to run dotnet run --urls https://0.0.0.0:443 to run a dotnet core API, but I want to turn that into a service, right now I have this: sudo nano /etc/systemd/system/mdvAPI.service [Unit] ...
Rafael Moreira's user avatar
1 vote
1 answer
198 views

Disable services with preseed

I need to disable apache service with preseed file. Is there any options to run systemctl disable command with preseed?
Ash Adams's user avatar
1 vote
0 answers
1k views

Using systemd to start an application

I want to create a linux service to start another application. For simplicity's sake let's just say it's Firefox. System Info: ➜ ~ lsb_release -a No LSB modules are available. Distributor ID: ...
Seth Harris's user avatar
4 votes
1 answer
20k views

Restarting a service remotely with ssh and sudo errors

I am using the following command to try and restart a service ssh username@server "systemctl restart storeapp.service" However I am getting the following error message. Failed to stop storeapp....
user3525290's user avatar