All Questions
9 questions
0
votes
1
answer
36
views
Where to set XDG_RUNTIME_DIR per user?
So I ran into the following interesting problem:
I tried to define XDG_RUNTIME_DIR in my .bashrc as follows:
export XDG_RUNTIME_DIR=$MY_HOME/.local/share
After doing this I noticed my pactl cli ...
0
votes
1
answer
94
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 ...
7
votes
1
answer
1k
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
2
answers
3k
views
How to make Systemd service file run echo commands that contains special characters?
I am trying to write a service file that unbinds a PCI device like this, after I run systemctl stop servicefile-name:
ExecStop=/bin/echo 1 > "/sys/bus/pci/devices/0000\:03\:00.0/remove&...
0
votes
1
answer
924
views
Why is my systemd startup script not running properly? (ubuntu 20.04)
I have created two systemd startup scripts as per https://www.howtogeek.com/687970/how-to-run-a-linux-program-at-startup-with-systemd/, containing the following:
#1
#!/bin/bash
synclient ...
2
votes
1
answer
93
views
How does one specify where to redirect output from a bash script, in systemd script?
I have a command in bash script that runs my custom application:
./my_app --config ./cfg >> my_app.log 2>>my_app.err
And I want to wrap this into a systemd service. I've done this so far:
...
0
votes
0
answers
72
views
This systemd service I wrote after following documentation for a Unturned server won't work any help?
What is wrong with my script/code or whatever and how would I go about fixing it?
Ubuntu server 20.04
Source to original documentation: https://wiki.smartlydressedgames.com/wiki/Linux_dedicated_server
0
votes
1
answer
825
views
Systemd service starts too early and doesn't work on automated restart
I need to manually fix my microphone source and volume via pactl every time I boot. Otherwise, they change randomly.
To do so, I made a script - mic.sh, which works exactly as intended when I run it ...
0
votes
0
answers
187
views
Ubuntu Server 19.04 systemd service for PixArk
I have created a systemd service for a PixArk server on my Ubuntu server that will keep the server running even if it crashes and allow for safe shutdown of the server when the system is restarted or ...