Skip to main content

All Questions

Tagged with
1 vote
1 answer
32 views

Systemd: should I use wants/requires for already enabled service listed in After=

I have a systemd service named webserver.service that is wanted by multiuser.target (enabled by default on system). I have another service under another target named test.service that I want to run ...
Denny's user avatar
  • 13
0 votes
0 answers
1k views

Unable to change from graphical target to other systemd targets in Ubuntu

I am currently a newer user of terminal in Ubuntu. I was trying to demonstrate some features of targets in systemd. Each time that I do systemctl enable or systemctl isolate , I enter my credentials, ...
Cody Tapp's user avatar
17 votes
2 answers
60k views

How can I make an executable run as a service?

On Ubuntu 18.04, I can start or stop some service by sudo service cron start/stop I can list some services by service --status-all The output matches the files under /etc/init.d/. I heard there ...
Tim's user avatar
  • 103k
0 votes
1 answer
291 views

--test option is not available for /sbin/init

According to man init(1) it is a --test option should be available. In fact when I am trying to test it I got an error root@mst-sls:~# /sbin/init --test /sbin/init: unrecognized option '--test' ...
l00p's user avatar
  • 263
2 votes
2 answers
4k views

systemd After [unit] option not working

I have the following myweb.service file [Unit] Description=myweb - A simple hello world program After=bluetooth.service [Service] Type=simple User=root ExecStart=/usr/bin/docker run -p 2222:4343 ...
manikawnth's user avatar
1 vote
0 answers
63 views

systemd service: Is it possible to get the name of the user who triggered a power event?

I'm trying to modify the power-related service files that come with systemd (for example, systemd-reboot.service) so that they run another command before bringing down the system. I want this command ...
kine's user avatar
  • 119
1 vote
1 answer
1k views

Cryptsetup: LVM is missing (on a system without LVM)

So, I have a problem with the partitions setup of my laptop. I will try to include as many details as possible in order to make it easier to help. In the past, I had an ubuntu 15.10 system on my ...
Lollen Jumplan's user avatar
2 votes
2 answers
1k views

Create persistent process without inittab

I have a virtual server running Ubuntu 14.04 LTS x64 and I want to create a persistent process that restarts with the system and when it crashes. To do that, I've added the following lines to the "...
user225183's user avatar