SysVinit is a set of programs and scripts that control the startup, running and shutdown of all other programs.

learn more… | top users | synonyms

1
vote
0answers
30 views

Getting verbose feedback for systemctl commands [duplicate]

One of my biggest issues with systemd is the lack of any feedback when starting/stopping/restarting a service. With sysvinit, I'd get the following after issuing service openvpn restart: [ ok ] ...
0
votes
0answers
31 views

Unknown job error on running service

I am getting an 'start: Unknown job: elasticsearch' error when I try to do service elasticsearch start When I run service --status-all I can see elasticsearch present in the list. But I ...
4
votes
1answer
77 views

Understanding the linux boot order in /etc/init.d

This question is about Debian, but I guess it's the same in many linux environments. The /etc/init.d directory defines the services that run at boot-time. As I see it, there are two mechanisms that ...
0
votes
1answer
58 views

Simple manager for systemd

Is there a manager that would run in the console, similar to sysv-rc-conf, that works with the latest systemd under Linux? Ideally it would be able to operate on all runlevels, and be ncurses based. ...
0
votes
1answer
684 views

Default-Start contains no runlevels

I am trying to make my custom made daemon run at startup and when I call update-rc.d ydcd enable I get the error update-rc.d: using dependency based boot sequencing update-rc.d: error: MyDaemon ...
1
vote
1answer
44 views

How to create a .deb that deals with different init systems

I'm learning how to create a .deb file using jdeb in order to deliver a maven based java headless application inside debian based distributions. It needs to be installed in such a way it auto start ...
0
votes
1answer
170 views

Auto-restart apache2 on crash with systemd(Ubuntu 15.10)

There is no apache2.service file on ubuntu 15.10. I want to restart apache2 if the apache2 process gets killed. For most services I can add a ... [Service] Type=simple ExecStart=/path/to/bin ...
5
votes
2answers
147 views

Does anything USE /dev/initctl or /run/initctl

I have been investigating code for a UPS for a Raspberry Pi that is using sysv init rather than systemd (personal preference and familiarity). I was looking into how a privileged script - possibly ...
2
votes
1answer
134 views

Explanation of systemd startup

Raspbian Jessie uses systemd and most system startup processes seem to be run from .service files. There are still a lot of SysV init entries. I gather from reading various articles that Debian 8 has ...
3
votes
1answer
96 views

Reason to use startproc, killproc and checkproc in Sys-V type init scripts in OpenSUSE

In OpenSUSE 11.4 sysvinit-tools package contains startproc, killproc and checkproc binaries which according to /etc/init.d/skeleton file and OpenSUSE documentation should be used in Sys-V type of init ...
0
votes
0answers
23 views

Service cleanup before reboot

Is it possible to determine or control how much time rc6.d scripts have to stop service (e.g. perform some cleanup, complete network transaction) before being forcibly killed? Do newer init systems ...
1
vote
0answers
92 views

How to have an /etc/xdg/autostart/app.desktop service wait for a (systemd) service?

TLDR: How to have an /etc/xdg/autostart/app.desktop service wait for a systemd service? Long: I have an app started by /etc/xdg/autostart/app.desktop that requires a systemd service to be started ...
0
votes
1answer
62 views

Help with “Required-Stop:” line in System-V type init script LSB header

I wrote a daemon which watches for files in certain directory and if a new file is copied to this directory, then it is committed to SVN. New files appear in this directory only if remote devices copy ...
0
votes
1answer
200 views

lsyncd won't start at startup

My os is mint 17.2 First off, when I start it with: sudo /etc/init.d/lsyncd start it starts. But when I reboot my system it isn't started by default. How do I have it start at boot time? I had ...
1
vote
3answers
1k views

How do I create a service for a shell script so I can start and stop it like a daemon?

I'm using CentOS 7 what my aim is to create a cron for every five seconds but as I researched we can use cron only for a minute so what I am doing now is I have created a shell file. hit.sh while ...
2
votes
1answer
162 views

command in /etc/inittab is not working on SLES 11

My task is to start a process on startup if it was running before shutdown. To achieve this, I have added a command in /etc/init.d/halt.local to save the state of process in a file. In /etc/inittab, ...
4
votes
2answers
250 views

Porting old sysvinit habits to systemd

I have a series of script with which I was able to install and configure newly Debian stable systems. To automatically start programs I use /etc/rc.local but for other cases I had to manually change ...
15
votes
2answers
17k views

How does systemd use /etc/init.d scripts?

I just switched to debian jessie, and most things run okay, including my graphical display manager wdm. The thing is, I just don't understand how this works. Obviously my /etc/init.d/wdm script is ...
11
votes
4answers
553 views

Is there a standard way to start and stop services on Linux?

Until recently there was a simple and effective way to start/stop/restart services: service nginx start|stop|restart This worked perfectly for so many years,... until some smart-pants decided to ...
10
votes
1answer
336 views

What is the meaning/purpose of *.pid files in /var/run

I'm quite new in Linux world, and now I'm trying to understand FHS principles. In /var/run I found about ten *.pid files like crond.pid which contains just pids. There is more than ten process ...
2
votes
2answers
3k views

How to change systemd service timeout value?

In the company I am working now there is a legacy service and its init script is using old SysvInit, but is running over systemd (CentOS 7). Because there's a lot of computation, this service takes ...
1
vote
0answers
107 views

Set respawn limit in /etc/inittab

I have a program that is set to run according to /etc/inittab. I'm setting this program to respawn whenever it exit or killed. This is the /etc/inittab file: ac:2345:respawn:/bin/myprogram -n What ...
0
votes
1answer
129 views

How to set upstart as default on Debian?

I have a virtual server running Debian. For some reason it doesn't boot if I am using sysvinit. I assume the problem lies with the host operating system, since it's a Virtuozzo based machine and not ...
4
votes
1answer
625 views

After switching to Devuan, how do I remove systemd?

So, I've also switched from Debian to the Devuan pseudo-fork. But - this doesn't get rid of systemd... I've followed the instructions here, and did: # apt-get install sysvinit-core sysvinit ...
2
votes
1answer
123 views

How to name and where to place upstart script?

I want to start a watchdog kicker on startup but am unsure how to name and where to place my upstart script. start on startup respawn script /usr/sbin/watchdog end script Reference: ...
3
votes
1answer
697 views

Completely remove remains of sysvinit

As opposed to people who want to get rid of systemd, I want to completely and safely remove sysvinit. I've been using Debian since Debian 7.0 (Wheezy). Currently I'm using Debian 9.0 (Stretch). ...
3
votes
1answer
231 views

Start sh in a specified directory from inittab

I am currently working on an embedded Linux system. For it to be similar to our other products I need to have it start a shell in a specified directory on boot, accessible using the serial port. For ...
0
votes
0answers
43 views

upstart + telinit: is it really works?

I think about how to backup my ubuntu server, and I want try one possible solution using init levels. So I downloaded Ubuntu 14.04.2 LTS, install it on VirtualBox, and try: telinit 1 It warn about ...
0
votes
1answer
198 views

Problems with (local) mount at boot (sysvinit)

During boot, some/many mount points in /etc/fstab are not mounted. The /etc/mtab file contains these mount points - my understanding is that the system believes the filesystems are already mounted. ...
1
vote
1answer
440 views

SysV init scripts to systemd migration in RHEL7

Please find the Sys V Init scripts for (User processes)Agent and Security daemon in Linux. Agent Daemon startup script /etc/rc.d/init.d/Agentdaemon /etc/rc.d/rc5.d/S91Agentdaemon Security Daemon ...
7
votes
2answers
2k views

Systemd and process spawning

Don't normally post here but I am ripping my hair out over this one. I have a Python script that forks when it launches, and is responsible for starting a bunch of other processes. This script used ...
1
vote
0answers
36 views

Show kernel parameters passed to init [duplicate]

I learned that if the kernel does not understand a parameter, it saves it and passes it to init when performing the user space start. While e.g. in show parameters of running kernel or How to display ...
3
votes
1answer
140 views

Is there a way to make nice (process priority) values survive a reboot?

I've been working on setting my Pi up as a seedbox, which I have no finally got working. My issue is that I also use this Pi as a mumble server and NAS for my media in home. I'm quite comfortable with ...
1
vote
1answer
30 views

What happens to the services that do not have a killing-script in the new run level?

I read, that each runlevel has its own set of services or daemons, which can be looked up in /etc/rcX.d (X for the respect runlevel), there are scripts which names start with S and start services of ...
2
votes
2answers
498 views

Does Debian Testing use Sysvinit, Systemd or Upstart? How do I configure it (them?)?

I have a copy of Debian Gnome, installed from live medium then upgraded to testing. I've decided to change my default X environment from GDM to i3 for reasons of productivity. This lead me to wanting ...
1
vote
1answer
535 views

systemd and non-existent *.service files: Are they generic?

systemd units are stored in /lib/systemd/system such as: rsync.service avahi-daemon.socket bluetooth.service cups.service When you use the following command: systemctl enable name Replace name ...
1
vote
0answers
87 views

What's the difference between SysV and SysV-like systems when changing runlevels?

I am planning to take the LPI exam, and need to know how SysV works. As far as I can tell, a real SysV system is described here: ...
5
votes
1answer
402 views

Convert sysvinit/upstart init scripts to runit

I am trying to migrate a currently VM-based infrastructure to a Docker-based one, using docker-baseimage, which uses runit/runsv to start and supervise system services. Now while it is apparently very ...
1
vote
1answer
2k views

Syncthing daemon starts manually using script, but not at startup

I have installed syncthing on a Linux Mint Debian Edition machine and am trying to get it started at boot time using an init script in /etc/init.d. I followed this tutorial. Symlinks in /etc/rc.* ...
2
votes
0answers
25 views

cowbuilder update warns of “Not restarting sysvinit”

We run a cowbuilder update every morning to grab any updated packages that may have arrived. During this update we are seeing this message sent to stderr: Not restarting sysvinit What does this ...
2
votes
0answers
211 views

Always try to stop daemon on shutdown without a lock file in /var/lock/subsys/

Normally, if a lockfile doesn't exist in /var/lock/subsys/, rhel doesn't try to stop the daemon, even though a link exists: /etc/rc0.d/K??svcname. There're daemons that are not always started by ...
5
votes
1answer
13k views

service command does not work in centos 7

I used to use service command for restarting, reloading, and checking status of service on centos 6.5 like below: $ sudo service nginx restart OK $ sudo service nginx status ...
1
vote
3answers
3k views

Replacing Upstart with Sysvinit in Wheezy results in error

I have a Debian Wheezy server with upstart installed. I removed upstart and replaced it with sysvinit, which resulted in the following error: apt-get install --reinstall sysvinit Reading package ...
2
votes
2answers
2k views

disabling ctrl-alt-del and /etc/init

My OS is RHEL 6.2 I disable Ctrl+Alt+Del by changing in /etc/init/control-alt-del.conf the line exec /sbin/shutdown -r now "Control-alt-del pressed" by exec /bin/true I'll be testing it next ...
4
votes
1answer
1k views

How to disable systemd's “Time has been changed” message spam in /var/log/syslog on Debian jessie?

Due to combined use of Debian jessie, that uses systemd by default, and sdwdate (that uses Slow Clock Adjuster ( gh )), my system clock is frequently changed. As a result /var/log/syslog gets ...
0
votes
1answer
179 views

Difference between telinit and running scripts manually under rc*.d

I was trying to debug my Linux boot process. If I set the default runlevel to 2 or 3, my system hangs without giving me a prompt. I was able to get to runlevel 1 via a kernel parameter, and ran all ...
2
votes
1answer
706 views

How can this init script start without its dependency?

I'm working on some lsb init scripts. Here's the init info from one of them: ### BEGIN INIT INFO # Provides: myscript # Required-Start: networking myotherscript # Required-Stop: networking ...
4
votes
2answers
1k views

Install init scripts manually under Debian Wheezy

I played around with LSB-compatible init-scripts under Debian Wheezy (init is from sysvinit package version 2.88dsf-41+deb7u1). My script in the /etc/init.d directory is as follows: root@T60:~# ls -l ...
2
votes
0answers
116 views

Where sysv-rc-conf gets information about daemons?

Recently I deleted an init-script of my program both from filesystem and with update-rc.d: update-rc.d foobar remove But sysv-rc-conf still lists it, though I can't see links in /etc/rc* ...
4
votes
1answer
4k views

Minimal Linux with kernel and BusyBox: /etc/inittab is ignored, only /init is executed

I managed to create a small and fully functional live Linux CD which contains only kernel (compiled with default options) and BusyBox (compiled with default options + static, all applets present, ...