Bug 625409 - runlevel[2-4].target doesn't stop prefdm.service
Summary: runlevel[2-4].target doesn't stop prefdm.service
Keywords:
Status: CLOSED DUPLICATE of bug 627014
Alias: None
Product: Fedora
Classification: Fedora
Component: systemd
Version: 14
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Lennart Poettering
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-08-19 10:38 UTC by Petr Lautrbach
Modified: 2010-08-30 08:31 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-08-30 08:31:58 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Petr Lautrbach 2010-08-19 10:38:12 UTC
Steps to Reproduce:
1. Boot in graphical.target
2. Run systemctl start runlevel2.target

Aug 19 12:26:11 f14-devel kernel: init[1]: Added job prefdm.service/stop to transaction.                                               

but

Aug 19 12:26:11 f14-devel kernel: init[1]: prefdm.service/stop would stop a running service.                                           
Aug 19 12:26:11 f14-devel kernel: init[1]: Deleting prefdm.service/stop to minimize impact.                                            
Aug 19 12:26:11 f14-devel kernel: init[1]: Deleting job plymouth-quit.service/start as dependency of job prefdm.service/stop           
Aug 19 12:26:11 f14-devel kernel: init[1]: Deleting job getty/start as dependency of job prefdm.service/stop          


Actual results:
prefdm.service is still running. 

Expected results:
prefdm.service should be stopped and there should be mingetty on tty1

Comment 1 Lennart Poettering 2010-08-19 13:45:25 UTC
You need to use "systemctl isolate runlevel2.target" for this.

"systemctl start" starts a service in addition to what is already running.

"systemctl isolate" starts a service and stops everything else that isn't a dependency. That means that for something resembling changing of runlevels "isolate" is the more appropriate call.

Comment 2 Petr Lautrbach 2010-08-30 06:41:03 UTC
same behaviour with isolate:

# rpm -q systemd
systemd-8-3.fc14.i686

# ls -l /etc/systemd/system/default.target
lrwxrwxrwx. 1 root root 36 Aug 16 14:43 /etc/systemd/system/default.target -> /etc/systemd/system/runlevel5.target

after boot:
graphical.target    loaded active       active  
prefdm.service      loaded active       running               

then i run:

# systemctl isolate runlevel2.target

Aug 30 08:39:40 hal init[1]: prefdm.service/stop would stop a running service.
Aug 30 08:39:40 hal init[1]: Deleting prefdm.service/stop to minimize impact.

graphical.target is gone but prefdm.service is still running

Comment 3 Michal Schmidt 2010-08-30 08:31:58 UTC

*** This bug has been marked as a duplicate of bug 627014 ***


Note You need to log in before you can comment on or make changes to this bug.