Skip to main content

All Questions

Tagged with
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
0 answers
104 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
0 answers
153 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
1 vote
1 answer
126 views

Systemd path PathExists= doesn't work if tracked file is deleted inside Unit=?

I have simple systemd.path restart.path: [Unit] Description= [Path] PathExists=/home/ubuntu/restart Unit=restart.service [Install] WantedBy=multi-user.target And the triggered restart.service ...
Azii's user avatar
  • 11
0 votes
1 answer
150 views

Bring systemd services up/down along with specific systemd service?

I have systemd: service1.service service2.service service3.service service1.service looks like: [Unit] Wants=service2.service service3.service After=service2.service service3.service [Service] ...
ojacomarket's user avatar
0 votes
0 answers
375 views

system.d custom service not running correctly script.sh but as user can run script.sh manually

[SOLVED] My questions is simple, I created a mcboot.service wich auto start my All The Mod 8 MC server, I sysctl enabled it, and did daemon-reload, my issue now is, I can execute without issue the run....
Elmani335's user avatar
0 votes
1 answer
124 views

Why is my systemd service creating write protected files?

I have created a systemd service in my Ubuntu 22.04 laptop that runs a java program by calling a bash file. [Unit] Description=Script to run JMS [Service] ExecStart=bash /home/user/Desktop/...
marcos's user avatar
  • 1
7 votes
1 answer
934 views

Service stops and starts with just the start command Ubuntu

I have recently created a service on my Ubuntu LTS server allowing me to test the uptime of my network. The script itself works as intended, but when I attempted to make it into a service I ...
Zach Frank's user avatar
0 votes
1 answer
4k views

Systemd cannot exec a start command with error: No such file or directory, but the path is correct and permissions are correct aswell

So I have this modded minecraft server which has a launch script that is very simple and I wanted to control the server using systemd. Here is the launch script: #!/bin/sh # Server Launch Script # # ...
mux's user avatar
  • 1
0 votes
1 answer
22 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 ...
nerdicsapo's user avatar
0 votes
1 answer
1k 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 ...
SpeedOfRound's user avatar
1 vote
2 answers
2k 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 ...
YaRmgl's user avatar
  • 133
4 votes
0 answers
1k 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 ...
telometto's user avatar
  • 2,055
-3 votes
1 answer
510 views

If Microsoft is pushing systemd so hard, then why do I restart my services in Ubuntu 18.04 LTS WSL using System V? [closed]

I had to restart my apache2 server in WSL yesterday, and I was surprised that I couldn't use systemctl like I do on Ubuntu; instead having to revert to sudo /etc/init.d/apache2 restart. But I thought ...
leeand00's user avatar
  • 4,675
7 votes
1 answer
1k views

systemd stops writing to StandardOutput file

I have a simple systemd service on Ubuntu 20.04 where I specified the following: StandardOutput=file:/var/log/appname/console.log When I first started the service, the file got created and I saw the ...
JohnEye's user avatar
  • 417

15 30 50 per page