Skip to content

Commit

Permalink
more systemd related fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Schleizer committed Jan 8, 2017
1 parent 31273da commit 12a220e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions lib/systemd/system/rads-block-display-manger.service
Expand Up @@ -5,6 +5,7 @@
[Unit]
Description=Ram Adjusted Desktop Starter Early Boot Display Manger Startup Preventer
Documentation=https://www.whonix.org/wiki/RAM_Adjusted_Desktop_Starter
ConditionPathExists=/dev/tty0
Before=rads.service
Before=getty.target
Before=graphical.target
Expand Down
5 changes: 3 additions & 2 deletions lib/systemd/system/rads.service
Expand Up @@ -5,7 +5,8 @@
[Unit]
Description=Ram Adjusted Desktop Starter
Documentation=https://www.whonix.org/wiki/RAM_Adjusted_Desktop_Starter
Before=getty.target
ConditionPathExists=/dev/tty0
Before=getty@tty1.service
After=rads-block-display-manger.service

[Service]
Expand All @@ -14,7 +15,7 @@ ExecStart=/usr/lib/ram_adjusted_desktop_starter/ram_adjusted_desktop_starter
ExecStartPost=/bin/rm --force /var/run/rads/rads-block-display-manger-startup.status
RemainAfterExit=yes
StandardOutput=journal+console
StandardInput=tty
StandardInput=tty-force

[Install]
WantedBy=multi-user.target
Expand Up @@ -21,6 +21,12 @@ exit_handler_rads() {

trap "exit_handler_rads" EXIT

sigint_handler_rads() {
exit 0
}

trap "sigint_handler_rads" EXIT

colors() {
if [ "$TERM" = "" ]; then
return 0
Expand Down

0 comments on commit 12a220e

Please sign in to comment.