Bug 755150

Summary: systemd rule needs changing to start on graphical desktop too
Product: [Fedora] Fedora Reporter: Jon Masters <jcm>
Component: opensshAssignee: Petr Lautrbach <plautrba>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: jchadima, mattias.ellert, mgrepl, plautrba, tmraz
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-11-23 12:02:15 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jon Masters 2011-11-19 04:51:09 UTC
Description of problem:

Unfortunately, systemd removes traditional Unix runlevel concepts and has targets, which means WantedBy with just multiuser won't start ssh by default. It needs to be wanted by in the graphical target too. Please add that so that the ssh server starts regardless of graphical or non-graphical setup.

Comment 1 Petr Lautrbach 2011-11-21 09:06:23 UTC
graphical.target is set to Requires=multi-user.target and After=multi-user.target, so all units, which multi-user.target wants, should be activated before graphical.target.

Is your sshd.service enabled? If you change default target to multi-user.target, is sshd.service activated?

Comment 2 Petr Lautrbach 2011-11-23 12:02:15 UTC
I installed F16 and started to graphical.target. sshd.service is active as I expected - sshd.service is wanted by multi-user.target which is required by graphical.target

[plautrba@f16 ~]$ systemctl is-active graphical.target
active
[plautrba@f16 ~]$ systemctl is-active multi-user.target
active
[plautrba@f16 ~]$ systemctl is-active sshd.service
active
[plautrba@f16 ~]$ rpm -q openssh
openssh-5.8p2-16.fc16.1.x86_64