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.

Filter by
Sorted by
Tagged with
0 votes
1 answer
136 views

service not as advertised

I am trying to add a new sysV service on an Ubuntu 18.04 host. However the service command does not behave as described in the manual - despite the presence of a file in /etc/init.d, "service" ...
user avatar
  • 180
1 vote
2 answers
11k views

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 ...
user avatar
1 vote
0 answers
153 views

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 ...
user avatar
  • 11
1 vote
1 answer
1k views

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 ...
user avatar
0 votes
1 answer
63 views

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 ...
user avatar
2 votes
1 answer
308 views

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 ...
user avatar
  • 206
16 votes
1 answer
13k views

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 ...
user avatar
1 vote
1 answer
1k views

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 ...
user avatar
2 votes
1 answer
627 views

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 ...
user avatar
  • 154
0 votes
1 answer
783 views

Script in /etc/init.d/ does not run in Ubuntu 15.10

I have a script which simply echos current time and appends the output to a file. Below is the bash script. #!/bin/bash #Filename: /etc/init.d/bootlog #Bash script to record a timestamp. echo "Time: `...
user avatar
  • 427
2 votes
1 answer
780 views

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.
user avatar
  • 427
1 vote
1 answer
603 views

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

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 ...
user avatar
  • 149
3 votes
1 answer
1k views

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 ...
user avatar
  • 131
1 vote
0 answers
786 views

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 ...
user avatar
1 vote
1 answer
79 views

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 ...
user avatar
  • 1,619
24 votes
1 answer
41k views

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 ...
user avatar
  • 65k
0 votes
2 answers
129 views

How can I know if a certain service is running or not?

The service utility allows to know the current status for the services installed in the system. However, when invocking service --status-all some services are listed as [+] (running), some as [-] (...
user avatar
12 votes
2 answers
5k views

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 ...
user avatar
  • 19.2k