[Bug 801123] Re: sshd init script does not use the option "--pidfile"
Scott Moser
smoser at canonical.com
Thu Jun 23 19:15:25 UTC 2011
> So again, the option --pidfile is not used in the init script,
> because it's value gets overwritten by sshd_config settings.
Well, its not really "overwritten", --pidfile to 'start-stop-daemon' is
not intending to influence sshd's behavior. As discussed in bug 277120
that you referenced, It is only used to determine if there is a process
already running or not (and avoid starting again).
The value of --pidfile as given to 'start-stop-daemon' must be the same
as defined in sshd_config (or, the default value of PidFile).
> It should get the right value from the config file, which is defined in
> /etc/default/ssh-<whatever> in a perfect world.
I'm confused what '<whatever>' would be. The existing /etc/init.d/ssh
script in lucid reads '/etc/default/ssh', not 'ssh-<something>'. Were
you hoping to have 1 definitive location for this setting? It seems
like to do that you'd have to either invoke sshd with '-o PidFile=' or
scrape it from the sshd config file.
Finally, 10.04 was the last release with /etc/init.d/ssh, it was subsequently replaced by an upstart job in /etc/init/ssh.conf.
I'm interested to see if you believe your use case is better handled there. See the default ssh.conf file at
http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/oneiric/openssh/oneiric/view/head:/debian/openssh-server.ssh.upstart
** Changed in: openssh (Ubuntu)
Status: New => Incomplete
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to openssh in Ubuntu.
https://bugs.launchpad.net/bugs/801123
Title:
sshd init script does not use the option "--pidfile"
Status in “openssh” package in Ubuntu:
Incomplete
Bug description:
The problem described in #277120, but it's closed with INVALID.
So again, the option --pidfile is not used in the init script, because it's value gets overwritten by sshd_config settings.
It should get the right value from the config file, which is defined in /etc/default/ssh-<whatever> in a perfect world.
The name of the default file should come from the name of the init
script.
This all is necessary for a multi instance setup.
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: openssh-server 1:5.3p1-3ubuntu6
ProcVersionSignature: Ubuntu 2.6.38-8.42-server 2.6.38.2
Uname: Linux 2.6.38-8-server x86_64
NonfreeKernelModules: veth ipt_MASQUERADE iptable_nat nf_nat ipt_LOG xt_tcpudp nf_conntrack_ipv4 nf_defrag_ipv4 xt_state nf_conntrack xt_multiport iptable_filter ip_tables x_tables snd_hda_codec_realtek bridge snd_hda_intel snd_hda_codec i915 stp snd_hwdep snd_pcm drm_kms_helper snd_timer drm snd soundcore snd_page_alloc ppdev i2c_algo_bit psmouse hp_wmi parport_pc parport serio_raw video e1000e sparse_keymap floppy smsc47b397 coretemp dummy raid10 raid456 async_pq async_xor xor async_memcpy async_raid6_recov raid6_pq async_tx raid1 raid0 multipath linear
Architecture: amd64
Date: Thu Jun 23 14:10:42 2011
SourcePackage: openssh
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/801123/+subscriptions
More information about the foundations-bugs
mailing list