Questions tagged [sysv]

System-V init service. Questions about how Ubuntu uses System-V like scripts to start/stop services at runlevels and it behavior, you should also check systemd and upstart for creation of newer scrips.

System-V-like scripts are run by the init process at boot, and whenever it was changed the run-level. These scripts are stored in the /etc/init directory in Ubuntu with symlinks to the different rcX.d directories accordingly with their run levels (X is each run level that vary between 1-6 in Ubuntu).

The common scripts are made of: name, description, start/stop commands.

18 questions
24
votes
1 answer

Why the services do not start at installation?

I've seen this sometime now, but not finding anything in the ubuntu man about this peculiar policy-rc.d binary that prevents services from being started/restarted/stopped when called by dpkg/apt, so I would like to know what is the reason of…
Braiam
  • 66,947
  • 30
  • 177
  • 264
17
votes
1 answer

SysV, Upstart and systemd init script coexistence

On my system (16.04), there are the files /lib/systemd/system/network-manager.service and /etc/init.d/network-manager, for example. I don't understand how (and why) this works. I always restart Network Manager by sudo service network-manager…
user2061057
  • 313
  • 1
  • 2
  • 6
12
votes
2 answers

How system services are started in 12.10?

One thing that always confused me in Ubuntu was how system services are started. I know that Ubuntu uses Upstart and supports SysV, but which one is used to start the services? This matters when you want a "manual" start for a service. For example,…
Salem
  • 19,604
  • 6
  • 62
  • 90
3
votes
1 answer

Revert to upstart

Is it possible to revert an ubuntu 14.10 install to a upstart or a SysV init system. The "loggin" and other issues with systemd has caused me issus with being unable to read the dmesg as normal and determine if my stability issues are from systemD…
Squidly
  • 131
  • 3
2
votes
1 answer

apt-get error: "SysV: not found"

On a Ubuntu 14.04 system we had installed elasticsearch 2.3.4. The system was upgraded to 16.04 An apt-get update & upgrade tried to upgrade to elasticsearch 2.4.4. But, we're now getting this error: Preparing to unpack…
eugenevd
  • 206
  • 1
  • 8
2
votes
1 answer

How to run an interactive script before xserver shutdown?

Every time I shutdown or restart my laptop (Ubuntu 14.04), I would like to run a script that checks, whether I pushed my newest code to my remote git repository. If I forgot it, then it opens a terminal, asks the user to enter a commit message and…
Oscillon
  • 154
  • 1
  • 9
2
votes
1 answer

How to check if a service was started by upstart or sysvinit?

For some services (ex: bluetooth) I have entries in both /etc/init.d/ and in /etc/init/ directory. How do I know how this service is started ? By sysvinit or upstart ? I am using Ubuntu 14.04.
sps
  • 437
  • 3
  • 9
  • 17
2
votes
0 answers

How can I get the order of startup scripts - upstart and systemV

I have an upstart script that must start before a non-upstart (System V) script. I see that while booting, the systemV script starts before my upstart script. How can I check the boot order of these scripts? Do all systemV scripts start before…
skd
  • 21
  • 1
1
vote
1 answer

Is it possible to remove systemd completely in Ubuntu 17.10 replacing with sysvinit or upstart or OpenRC

Personal preference to run Ubuntu 17.10 without systemd as init replacement. I would like to know, if Upstart, OpenRC etc works anymore in Ubuntu 17.10 as direct replacement. I know, it will be hard to trace every services systemd has grappled and…
Confguy2016
  • 341
  • 7
  • 24
1
vote
1 answer

How to display the missing output message while execute sudo service/systemctl on Ubuntu 16.04

We already knew that from Ubuntu 15 and above are using systemd, however the famous and unbeatable SysV still supported. But there is a small issue which annoying (me and whom may concern). I love the way SysV display output while I executed sudo…
Toan Nguyen
  • 392
  • 1
  • 2
  • 14
1
vote
1 answer

`apt dist-upgrade` doesn't care about removing upstart and wants to install sysvinit... why?

I ran a regular apt-get upgrade followed by apt-get dist-upgrade. After I clicked on the 'Yes' as usual, the dist-upgrade started removing a lot of important packages and when I scrolled up in the terminal, I saw this to my surprise: $ sudo apt-get…
Donbhupi
  • 149
  • 7
1
vote
0 answers

Trusty preseed error

I have a preseed file that installs Trusty but the install is giving me this error: Jul 22 17:52:42 in-target: Setting up sysv-rc (2.88dsf-41+deb7u1) ... Jul 22 17:52:42 in-target: info: Reordering boot system, log to …
1
vote
1 answer

Removing Sys-V-Init script in favour of rc.local. Will application still shutdown correctly?

I've had to remove the /etc/init.d/crashplan script by doing update-rc.d -f crashplan remove in favour of starting the daemon using /etc/rc.local (the reason for this is that I have an encrypted home dir that only gets mounted upon user login, and…
fpghost
  • 1,649
  • 3
  • 24
  • 33
1
vote
2 answers

Ubuntu 18.04 - Can't install sysv-rc-conf package for managing startup services

I am using Ubuntu 18.04.1 LTS I am not able to install sysv-rc package. Tried to install from deb package but there are so many dependencies that I failed by downloading them one by one. Why sysv-rc package is not anymore supported in ubuntu 18? I…
dasdasds
  • 11
  • 1
  • 1
  • 2
0
votes
1 answer

How can I make sure one Upstart service starts before other non-Upstart (System V) service?

Is there a way to run one Upstart service before another non-Upstart service (system V, to be more precise)? Or I must "convert" my Upstart script to a System V script (if it provides such functionality at all)?
Kiril Kirov
  • 195
  • 9
1
2