Skip to main content

All Questions

Tagged with
0 votes
1 answer
47 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 ...
Alexander Mills's user avatar
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
2 answers
2k 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&...
The B-52s Bassist's user avatar
0 votes
1 answer
847 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 ...
Bart Weil's user avatar
2 votes
1 answer
78 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: ...
michika's user avatar
  • 39
0 votes
0 answers
66 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
Peter Hamilton's user avatar
0 votes
1 answer
731 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 ...
rain's user avatar
  • 1
0 votes
0 answers
182 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 ...
Martinn Roelofse's user avatar