You are not logged in.
Hi! I've finally decided to move from init scripts to systemd. I'm using Xfce and Slim as login manager. Following the guide on wiki, I've enabled services that are in my DAEMONS array. After reboot my graphical interface didn't start. I figured out I should also enable slim.service. It should be available according to Daemons List. But executing
systemctl enable slim.service
returns this:
Operation failed: No such file or directory
How could I resolve this?
Thanks!
Last edited by micer (2012-11-25 20:14:28)
Offline
What is the output of,
systemctl status slim
?
Do you run the enable command as root or as user (without sudo)?
Just to make sure the service file is actually there,
ls /usr/lib/systemd/system/ |grep slim
Last edited by root (2012-11-24 21:40:02)
\(o_X)/
'Cause I wanna be an Archy - An Archy in the UK // Sex Pistols
Offline
Yes, I run enable with root.
systemctl status slim
returns:
Failed to get D-Bus connection: No connection to service manager.
and
ls /usr/lib/systemd/system/ |grep slim
doens't return anything
Seems like service is not there - how can I add it?
Last edited by micer (2012-11-24 22:08:30)
Offline
Looks like Dbus is not running. You need that to run slim. Try enabling that.
Life is pleasant. Death is peaceful. It's the transition that's troublesome. Isaac Asimov - / -
Offline
@jv2112
According to the wiki it should be running automatically if dbus-core is installed.
@micer
Are you booting with systemd?
On the basis of a similar thread it seems that by not doing so may be the reason for your trouble.
\(o_X)/
'Cause I wanna be an Archy - An Archy in the UK // Sex Pistols
Offline
Thanks for replies!
I wasn't booting with systemd so I tried it ("cat /proc/1/comm" now returns "systemd", I've started gui manually), but it didn't solve the problem. Slim.service still isn't in the list of services (systemctl list-unit-files).
"systemctl status slim" now returns:
slim.service
Loaded: error (Reason: No such file or directory)
Active: inactive (dead)
There must be a way how to put it there. :-)
Offline
Thanks for replies!
I wasn't booting with systemd so I tried it ("cat /proc/1/comm" now returns "systemd", I've started gui manually), but it didn't solve the problem. Slim.service still isn't in the list of services (systemctl list-unit-files).
"systemctl status slim" now returns:
slim.service Loaded: error (Reason: No such file or directory) Active: inactive (dead)
There must be a way how to put it there. :-)
slim.service is part of the slim package, so if it isn't there you either don't have slim installed or somehow screwed up and the file got deleted - a reinstall of slim would fix that. Well, or you haven't updated your system in a long, long time...
Offline
Same happened to me.Then I instaled slim and it worked.
Offline
@65kid @10PinkPanther
Thanks, you're right - I installed slim and the service is there now. :-) Don't understand why it wasn't there before since I'm using slim all the time.
Now - after boot, it stays on tty1. How to make systemd to automaticaly switch to tty7 where is my slim login manager?
EDIT: after another restart it works fine :-) problem solved, thanks for your help guys!
Last edited by micer (2012-11-25 20:14:03)
Offline