Questions tagged [systemctl]

systemctl is the main command to control and introspect the systemd Linux init system.

systemd is a system and service manager in Linux. More information about switches and arguments can be found here.

228 questions
1
vote
1 answer

How to install gmod server as system service on Ubuntu?

I have a GMod server on Ubuntu 18.04, and it runs fine when I run it via ./run_gmod.sh (as the "steam" user, who owns the folder/files), whose contents are #!/bin/sh /datadrive/srcds/gmod/srcds_run -game garrysmod -console -norestart -strictportbind…
ROODAY
  • 215
  • 2
  • 5
1
vote
0 answers

Systemd unit not found on start but exists on status

A service exists and succesfully found via status command >sudo systemd status my-service ● my-service.service - My service description Loaded: loaded (/usr/lib/systemd/system/my-service.service; static; vendor preset: disabled) Active:…
TEXHIK
  • 111
  • 1
  • 3
1
vote
1 answer

listing Systemd target unit's dependencies in a machine readable format

I have a complex systemd target unit with a number of dependency units. I would like to list and parse the status of these without falling back to a loop. the 'list-dependencies' sub-command only gives the status in form of a (coloured, not…
THX
  • 243
  • 2
  • 10
1
vote
1 answer

Cannot start services on CentOS 7

Suddenly, I cannot start services on my VPS(CentOS 7). For example, service httpd start Redirecting to /bin/systemctl start httpd.service Authorization not available. Check if polkit service is running or see debug message for more…
William
  • 99
  • 1
  • 2
  • 11
1
vote
0 answers

Postgresql: can't start service database system was shut down

I install Postgresql using sudo apt install postgresql postgresql-contrib then I run sudo systemctl restart postgresql then I run sudo systemctl status postgresql It says Active: active (exited) since ... 1s ago So it looks like the restart…
parsecer
  • 163
  • 1
  • 8
1
vote
1 answer

systemctl enable seems to succeed, but unit not intalled as a want per [Install] WantedBy

Pretty new to systemd, so likely (and hopefully) missing something trivial. Thanks in advance. I'm trying to enable a service (bees btrfs dedup; unit file below), but the enable/[Install] doesn't appear to have any effect?. I run the following,…
1
vote
0 answers

View systemctl service process

I have a minecraft server running as a system service and wish to check up on it. I know I can do systemctl status minecraft.service but that doesn't let me see the java process's output and/or input new commands. Is there any way to access the…
1
vote
0 answers

pre launching systemd user processes

I've configs in place to start resque-first.target, then resque-metro.target and finally resque-prisma.target, but for some reason they all start at the same time systemctl --user cat resque-worker.target #…
luisgarcia
  • 11
  • 2
1
vote
1 answer

How does systemctl variable escaping work in a shell?

I want do a batch job with systemctl, something like: systemctl status v2ray-haproxy@{1..5} That's fine. But when i change 5 to a variable: n=5;systemctl status v2ray-haproxy@{1..$n} It's not working now, and error: Invalid unit name…
Rampage
  • 11
  • 2
1
vote
1 answer

systemctl service can't restart on reboot

I have created a service for systemctl which works perfectly but whenever I reboot the server it can't auto-restart itself. The code for the service is: [Unit] Description=Service…
0
votes
0 answers

Ubuntu service is showing running even after the process is killed

I have created a service like below:- Description=Java Service [Service] User=nobody # The configuration file application.properties should be here: WorkingDirectory=/home/ubuntu/pear ExecStart=/usr/bin/java -jar…
0
votes
0 answers

Ubuntu Service not starting

I have a chatbot application that should run as a service with systemctl. Whenever I try to start the chatbot service I’m getting error and the service fails. If I start the chatbot directly from the terminal it works fine. But not when I start it…
Macaret
  • 101
  • 1
0
votes
1 answer

How to fix error in catalina.out "libjli.so: cannot open shared object file: No such file or directory"

I was getting this error when running systemctl restart tomcat in my $CATALINA_HOME/logs/catalina.out log file: https://pastebin.com/Cpfs9xCk So I followed this post…
Philip Rego
  • 210
  • 1
  • 5
  • 14
0
votes
1 answer

How do I fix my systemctl status tomcat?

How can I get systemctl status tomcat to return 'success' instead of 'failed'? This is my etc/systemd/system/tomcat.service file: [Unit] Description=Apache Tomcat Web Application Container After=syslog.target…
Philip Rego
  • 210
  • 1
  • 5
  • 14
0
votes
1 answer

shibd daemon 'timeout' on systemctl start

I have a server that uses the shibboleth2 shibd daemon to allow remote authentication to a database. The daemon reads a very large federation metadata file on starting/reloading (circa 34MB). This needs several minutes to process. Previously it…
fred2
  • 97
  • 9