Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Manually enable systemd services?
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
Ginta
Tux's lil' helper
Tux's lil' helper


Joined: 17 Feb 2006
Posts: 133
Location: Spain

PostPosted: Sat Jun 07, 2014 4:34 am    Post subject: Manually enable systemd services? Reply with quote

I am switching to systemd, but I have a problem.

Obviously if I don't boot with systemd, sysctl is not working, but I have my laptop screen broken, and I *need* slim.service to be enabled, so at least I can see something and start a xfce4 session

Is there any way to manually enable services at boot without using sysctl (symlink or so?)
_________________
Somebody should use emerge brain on theirselves...
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6281

PostPosted: Sat Jun 07, 2014 7:11 am    Post subject: Reply with quote

systctl enable/disable does nothing else than creating/removing symlnks from /etc/systemd/system/*/... to /usr/lib/systemd/... (or /etc/systemd/system/...).
Usually the * in /etc/systemd/system/*/... is multi-user.target.wants, but the subdirectory can be specified in the file from {/usr/lib,/etc}/systemd/... itself ("WantedBy=...")
Back to top
View user's profile Send private message
Ginta
Tux's lil' helper
Tux's lil' helper


Joined: 17 Feb 2006
Posts: 133
Location: Spain

PostPosted: Sat Jun 07, 2014 3:39 pm    Post subject: Reply with quote

Thank you for your response.

Finally I did the hardest, blindly login as root by waiting the sufficient time, blind type systemctl start slim.service

Then yes, I noticed the symlink you mentioned :)
_________________
Somebody should use emerge brain on theirselves...
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