Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
systemd
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
alexbuell
Guru
Guru


Joined: 18 Jul 2002
Posts: 481
Location: "Hemp"shire, UK

PostPosted: Sat May 10, 2014 7:05 pm    Post subject: systemd Reply with quote

In the old days after an upgrade, I would do a
Code:
telinit 1
followed by a
Code:
telinit 3
, going single user then multi user to restart all the daemons that init spawned.

How the blazes can I do the same with systemd? I know I could do a reboot but I'd rather not!
_________________
Cheers,
Alex.

Linux - the best text adventure game ever.
Back to top
View user's profile Send private message
1clue
Advocate
Advocate


Joined: 05 Feb 2006
Posts: 2549

PostPosted: Sat May 10, 2014 7:39 pm    Post subject: Reply with quote

I can't tell you about the systemd part because I don't use it, but I have a question:

Why do you not want to reboot? Are you an uptime junkie? Because there's not really a lot of difference between what you're describing and a reboot. You still lose sessions on existing connections, and you generally don't get fsck which it turns out is actually necessary once in awhile.

I'm asking because I used to be an uptime junkie. I still have uptimed on every box. It's up to you in any case, but speaking from personal experience you can and probably will at some time get an unbootable system.

At one point I got almost 2.5 years of uptime on one box. It was a production (needed for business) box, I did updates on it but never rebooted in all that time. We lost power and the system no longer booted. I never got it back with the configurations working right. The partitions came back corrupted and I lost most of it.

A good rule of thumb for me is to reboot every time an 'interesting' kernel/glibc update comes along, meaning some sort of security fix or feature change that affects you.
Back to top
View user's profile Send private message
alexbuell
Guru
Guru


Joined: 18 Jul 2002
Posts: 481
Location: "Hemp"shire, UK

PostPosted: Sat May 10, 2014 9:16 pm    Post subject: Reply with quote

I'd reboot but I run several VMs!
_________________
Cheers,
Alex.

Linux - the best text adventure game ever.
Back to top
View user's profile Send private message
GFCCAE6xF
Apprentice
Apprentice


Joined: 06 Aug 2012
Posts: 266

PostPosted: Sat May 10, 2014 9:36 pm    Post subject: Reply with quote

# systemctl isolate emergency.target should do it, also systemctl isolate runlevel1.target if gentoo has symlinks set up for that.
Back to top
View user's profile Send private message
1clue
Advocate
Advocate


Joined: 05 Feb 2006
Posts: 2549

PostPosted: Sun May 11, 2014 3:46 am    Post subject: Reply with quote

Seriously:

You need to reboot once in awhile. If you have VMs, and especially if they actually mean something, then you MUST keep your host system stable. The cost of a failure with a VM host is multiplied by the number of guests.

So here are your options:
[list=]
[*]Schedule a "maintenance window" during which everyone knows their system will be down briefly.
[*]Set your VM hosts up such that you can move the running images from one host to another, and then reboot the empty one and pull all the VMs of the next host over to the freshly rebooted one, and so on.
[/list]

I'm seriously not telling you how to do your business, but I'm warning you you're headed for a train wreck, based on my own personal experience. Keeping a system up and keeping it stable at the same time is more difficult the longer the time between reboots. It's like juggling china plates, and somebody throws you a new plate to add to the mix every once in awhile.
Back to top
View user's profile Send private message
alexbuell
Guru
Guru


Joined: 18 Jul 2002
Posts: 481
Location: "Hemp"shire, UK

PostPosted: Sun May 11, 2014 3:09 pm    Post subject: Reply with quote

Thanks, but I know what I'm doing... been at this since 2002, mate. The systemctl commands worked a treat.
_________________
Cheers,
Alex.

Linux - the best text adventure game ever.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum