All Questions
35
questions
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/...
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 ...
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"])
...
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 ...
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]
...
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....
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/...
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 ...
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
#
# ...
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 ...
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 ...
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 ...
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 ...
-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 ...
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 ...