Skip to content

u/linuxunix

In this archive from Aug 2010 to Jul 2024

0
posts
18
comments
0
media
66
score

I did not make this, but it makes systemd more tolerable...just but it in your bashrc or source it. i.e to use, 0.start ntpd or 0.enable wicd

# simplified systemd command, for instance "sudo systemctl stop  xxx.service" - >
# "0.stop xxx"
if ! systemd-notify --booted;
then  # for not systemd
0.start() {
    sudo rc.d start $1
}

0.restart() {
    sudo rc.d restart $1
}

0.stop() {
    sudo rc.d stop $1
}
else
# start systemd service
0.start() {
    sudo systemctl start $1.service
}
# restart systemd service
0.restart() {
    sudo systemctl restart $1.service
}
# stop systemd service
0.stop() {
    sudo systemctl stop $1.service
}
# enable systemd service
0.enable() {
    sudo systemctl enable $1.service
}
# disable a systemd service
0.disable() {
    sudo systemctl disable $1.service
}
# show the status of a service
0.status() {
    systemctl status $1.service
}
# reload a service configuration
0.reload() {
    sudo systemctl reload $1.service
}
# list all running service
0.list() {
    systemctl
}
# list all failed service
0.failed () {
    systemctl --failed
}
# list all systemd available unit files
0.list-files() {
    systemctl list-unit-files
}
# check the log
0.log() {
    sudo journalctl
}
# show wants
0.wants() {
    systemctl show -p "Wants" $1.target
}
# analyze the system
0.analyze() {
    systemd-analyze $1
}
fi
-4 points

Not sure, it seems like X may be involved somehow. Do you see the bootup messages, then it goes black? or are you losing everything after grub?

Try switching to a different console CTRL-ALT-F1. If that does not work, boot from you install CD and look at /etc/rc.conf and see what deamons are being run.

1 points

End of this list.

Back to top

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.