On Tue, Jun 2, 2015 at 11:47 AM, Санакоев Владимир <wladimir-...@ya.ru> wrote:
> Hi! > > I'm having trouble using the Your site "lists.freedesktop.org", also > because my english is not forceful. > Sorry, I'll change that. > > My main problem in the error unit "xl2tpd.service" and in "nss-hostname". > The terminal displays the message to me, I can not understand. This > terminal also displays your address and I therefore appeal for your support. > > I have. Debian-8. Distribution from official repository. Install from > iso-file: debian-8.0.0-i386-DVD-1.iso.With the Implementation of protocol > of L2TP tunnel heving Problems. Start Daemon xl2tpd is failed: > > This *from terminal* exited: > > "*Start Daemon xl2tpd is failed:* > > *xl2tpd.service: control process exited, code-exited, status-1* > > *Starting xl2tpd: Failed to start.* > > *DAEMON_OPTS: not found. /etc/default/xl2tpd* > > *Unit xl2tpd.service is Failed.* > The error message is a bit unclear; can you try after `export LC_MESSAGES=en_US` or `export LC_MESSAGES=C`? Anyway, it seems like a problem with xl2tpd itself – not systemd. Check the system logs. > *Successfully activated service: 'org,freedesktop.hostname1'.* > > *Warning: nss-hostname is not installed.* > > *Changing the local hostname make it unresolveable.* > > *Please install nss-myhostname.*" > This is not related to xl2tpd at all – it's just a warning printed by "hostnamectl set-hostname". > *My note:* I have tried to reload unit or make to enable it, is no > result, because this unit does not exist in list. Command: 'systemctl > list-unit-files', displays list, in which unit does not exist. But packet > xl2tpd is installed! Files edited. What must I to make additional yet? > Debian's xl2tpd package doesn't actually *have* a systemd unit yet. So when you try to `systemctl start`, it uses a virtual unit that just runs "/etc/init.d/xl2tpd start". > *I have questions:* > > 1. What is "nss-myhostname" or "nss-hostname"? > It is a glibc module. Glibc uses nss modules for resolving various kinds of names (user names to UIDs, host names to IP addresses, etc), for example, libnss_dns is used for DNS lookups, and libnss_files is used for /etc/hosts & /etc/passwd & /etc/group. Similarly, libnss_myhostname is a very simple module that only translates "localhost" & the machine's own hostname to 127.0.0.1 & [::1]. Some programs require that the computer's hostname can be resolved to an IP address, so people used to have things like "127.0.0.1 myComputer localhost" in /etc/hosts. But it's easy to forget to update this file, so nss-myhostname was created to make it work automatically. > 2. *How to install* "nss-hostname"? > On Debian, it's the "libnss-myhostname" package. After installing it, make sure /etc/nsswitch.conf has "hosts: files dns myhostname" or something similar. > 3. How to include the unit "xl2tpd.service" in the units list? > As mentioned above, this unit doesn't actually exist, so you'll have to write it first. > 4.*Why* terminal writes: " ...make it *unresolveable*"? I don't > understand it. It may be need to write : "... make it *resolvable*"? > The hostname is already resolvable; the warning is trying to tell you that something could *break* it. > 4. *DAEMON_OPTS = " "* ? Probably, the value of this "DAEMON_OPTS" need > to write in file: /*etc/default/xl2tpd *? If is so, I don't know, what > must to write. My provider also can't help me. > The variable just contains the options that will be passed to /usr/sbin/xl2tpd, for example: DAEMON_OPTS="-c /etc/xl2tpd/xl2tpd.conf" But usually xl2tpd doesn't need any special options, I think. -- Mantas Mikulėnas <graw...@gmail.com>
_______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel