Linked Questions

63
votes
3answers
20k views

What is the difference between these commands for bringing down a Linux server?

Reading "What is the difference between Halt and Shutdown commands?" , I generally have an idea what does the command shutdown does, with or without -h/-r options. The "halt" command performs ...
55
votes
4answers
71k views

How to run a script with systemd right before shutdown?

What do I need to put in the [install] section, so that systemd runs /home/me/so.pl right before shutdown and also before /proc/self/net/dev gets destroyed? [Unit] Description=Log Traffic [Service] ...
6
votes
1answer
6k views

Which systemd service starts text console on the framebuffer device?

I'm working with an embedded platform and need to have /dev/fb0 clear for my own use (the device accessible over serial console while the screen is used to display information, without X.). I've ...
2
votes
4answers
715 views

Why is there a call to `clear_console` in `~/.bash_logout`?

When I log in with the same user on tty1 and tty2 and start an X server session on tty1 - as soon as I log out of tty2, the X server session on tty1 crashes. This seems to be a known bug: https://...
5
votes
2answers
1k views

How can I get /bin/login to not timeout

In my /etc/inittab I am using the following line: ttyS0::respawn:/bin/login This gives me a login prompt if I want to connect to the serial port. But it keeps echoing this: [hostname] login: Login ...
2
votes
3answers
953 views

Execute ncurses program after boot

I want to make centos show a tui (ncurses program) after boot and without login. I don't want the login prompt to be displayed. Program functions: Network configuration, Reboot, Shutdown Is there ...
3
votes
1answer
2k views

Configuring Login Prompt with agetty

I'm playing around, and trying to streamline/harden my tty login prompt to display a minimum of system information. I modified my /etc/issue and /etc/motd to be empty, and touched ~/.hushlogin. That ...
2
votes
1answer
1k views

how can i stop auto login console and getty in raspbian jessie

How can i stop auto serial port auto login console and getty in raspbian jessie os and why /etc/inittab/ is empty ? Where can i get this #Spawn a getty on Raspberry Pi serial line T0:23:respawn:/...
0
votes
1answer
698 views

Interaction with /etc/rc.local

It is commonly know, that for some script being executed after logging in, one must write path to the script in /etc/rc.local My Raspberry Pi (OS - Raspbian Jessie ) boots to prompt mode and many ...
2
votes
1answer
806 views

“askfirst” getty with systemd (“press enter to activate this console”)

On a Debian Jessie system with systemd, how can I configure the terminals so that a message like Press enter to activate this console is displayed and the login prompt does not appear before hitting ...
2
votes
1answer
703 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 ...
4
votes
1answer
414 views

Netctl causes getty to clear the screen and re-display the issue message

I have systemd configured to not clear the terminal before calling getty, and also getty itself is run with the --noclear option, so that my boot messages are left displayed when the login prompt from ...
-1
votes
1answer
251 views

Script output has mysterious trailing characters when executed in a specific environment

I'm working on a project that requires the use of a test framework called Appium in Java. The Appium library is attempting to run the following script on my machine to find out where my NodeJS install ...