Linked Questions

88
votes
18answers
38k views

Detect init system using the shell

This may have more to do with detecting operating systems, but I specifically need the init system currently in use on the system. Fedora 15 and Ubuntu now use systemd, Ubuntu used to use Upstart (...
1
vote
3answers
8k views

startx autologin does not run in /etc/inittab in after Debian Jessie update

I installed a minimal Debian system (stable) without GUI, switched to testing/jessie to be able to get the Cinnamon desktop, but X didn't start on boot. If I log in as myself at the CLI, I can type ...
3
votes
2answers
3k views

Why this error about upstart/systemd with runit?

I run sudo apt-get install git-all in Ubuntu 16.04 and see the following in the end Setting up runit (2.1.2-3ubuntu1) ... start: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/...
1
vote
1answer
2k views

Does Yocto linux use SysVinit or systemd?

I'm struggling to understand boot process on Yocto linux (Dizzy) which I got as pre-built image. It boots in xfce; pidof /sbin/init shows "1" which should mean that it's SysVinit. However, there is no ...
1
vote
2answers
903 views

How to determine a Linux distro is systemd or sysV init without installing or booting?

I noticed in somewhere that most of the Linux distro are based on Systemd instead of SysV init. So I just want to know without installing and booting. Is there any possible way to find distro based ...
4
votes
3answers
371 views

What would happen if I schedule a shutdown in the middle of an update?

I did an update of CentOS 6 last night which was rather large. By the time I decided to leave it to finish, the process was only a few packages away from completing the download. So, I scheduled a ...
3
votes
2answers
2k views

Each service runs twice while booting Fedora 25

I've just installed Fedora 25. However, while starting up the computer, each initialization service runs twice (see the attached picture), or are shown twice on the screen. How can I fix that? (I'm ...
1
vote
1answer
726 views

I don't have upstart installed on 16.04 but /etc/init has a bunch of .conf scripts in it. Why?

I'm trying to get a command to run on boot and wrote an upstart .conf file and put it into /etc/init. It's a brand new EC2 instance and theres was already bunch of .conf files there. My file wasn't ...
1
vote
1answer
796 views

Why is the localtime reset to the default timezone?

I use the following commands to set the timezone on our Amazon Linux (Centos) server: ls -al /etc/localtime -rw-r--r-- 1 root root 118 25 dec 2012 /etc/localtime sudo mv /etc/localtime /etc/...
0
votes
0answers
407 views

start a service using service not /etc/init.d

I have made modification to the file /etc/init/hylafax. When I start the hylafax service using /etc/init.d/hylafax {start|stop}, these modifications are executed. But when I start it using service ...
0
votes
1answer
141 views

cron reschedule seems not to be taken into account unless reboot occurs?

I have read a number of posts on SE.com regarding cronjobs, crontab, and how to reschedule cron jobs. But it seems that, in my Debian environment, a session cleanup job schedule simply called "php", ...
-2
votes
2answers
65 views

How can one check in one's program if it is a service process that was started by systemd? [duplicate]

Is there a documented way to check, from within the code of the program running as the service itself, that it has been started by systemd (as opposed to being started from within an interactive login ...
0
votes
1answer
31 views

How to make my sysvinit service work on as many distros as possible?

I am attempting to write a cross-platform sysvinit service that works on as many sysvinit systems as possible. Things I need: The process needs to daemonize (it does not automatically daemonize ...