<feed xmlns='http://www.w3.org/2005/Atom'>
<title>initscripts/etc, branch 10.00.6</title>
<subtitle>Mageia fork of Fedora's Init Scripts</subtitle>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/forks/initscripts/'/>
<entry>
<title>network: don't fail with IFDOWN_ON_SHUTDOWN</title>
<updated>2019-10-30T07:34:53+00:00</updated>
<author>
<name>Jan Macku</name>
<email>jamacku@redhat.com</email>
</author>
<published>2019-10-30T07:34:53+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/forks/initscripts/commit/?id=8b9704ab4d4854595d6876bdfdfd1bbe835fbb88'/>
<id>8b9704ab4d4854595d6876bdfdfd1bbe835fbb88</id>
<content type='text'>
Resolve rhbz#1738578</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Resolve rhbz#1738578</pre>
</div>
</content>
</entry>
<entry>
<title>rc.d/functions: fix escape sequence being output under systemd service units</title>
<updated>2019-08-07T10:18:51+00:00</updated>
<author>
<name>Jan Macku</name>
<email>jamacku@redhat.com</email>
</author>
<published>2019-08-07T09:58:59+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/forks/initscripts/commit/?id=62e93c3e251b10f52786993b4e761eaa1dc3106f'/>
<id>62e93c3e251b10f52786993b4e761eaa1dc3106f</id>
<content type='text'>
When functions provided by /etc/rc.d/functions is used, escape
sequence is output under systemd service units and logged into
/var/log/messages as follows:

    # LANG=C systemctl cat foobar.service
    # /etc/systemd/system/foobar.service
    [Unit]
    Description=FOOBAR

    [Service]
    Type=oneshot
    ExecStart=/usr/bin/foobar.sh
    RemainAfterExit=yes

    [Install]
    WantedBy=multi-user.target
    # cat /usr/bin/foobar.sh
    #! /bin/bash

    . /etc/init.d/functions
    echo_success
    # LANG=C grep foobar.sh /var/log/messages
    Aug  7 09:29:54 localhost foobar.sh[29607]: #033[60G[#033[1;32m  OK  #033[0;39m]#015#033[60G[#033[1;31mFAILED#033[0;39m]

This is a regression issue caused by the commit f88dbd98e992 where
consoletype command was dropped.

Under systemd service units, standard input is associated with
/dev/null by default:

    # systemctl show -p StandardInput foobar.service
    StandardInput=null

  man 5 systemd.exec:

     StandardInput=
         Controls where file descriptor 0 (STDIN) of the executed
         processes is connected to. Takes one of null, tty,
         tty-force, tty-fail, data, file:path, socket or fd:name.

         If null is selected, standard input will be connected to
         /dev/null, i.e. all read attempts by the process will
         result in immediate EOF.

consoletype command interprets /dev/null as serial:

    # consoletype &lt; /dev/null
    warning: consoletype is now deprecated, and will be removed in the near future!
    warning: use tty (1) instead! More info: 'man 1 tty'
    serial

The commit f88dbd98e992 overlooks this situation.

To fix this issue, check also "not a tty" to cover the case where
standard input is /dev/null.

Note that LANG=C is needed because the message "not a tty" varies
depending on locales.

(cherry picked from commit fdcc55839df2334d7a7567de1f02f07ee7a69561)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When functions provided by /etc/rc.d/functions is used, escape
sequence is output under systemd service units and logged into
/var/log/messages as follows:

    # LANG=C systemctl cat foobar.service
    # /etc/systemd/system/foobar.service
    [Unit]
    Description=FOOBAR

    [Service]
    Type=oneshot
    ExecStart=/usr/bin/foobar.sh
    RemainAfterExit=yes

    [Install]
    WantedBy=multi-user.target
    # cat /usr/bin/foobar.sh
    #! /bin/bash

    . /etc/init.d/functions
    echo_success
    # LANG=C grep foobar.sh /var/log/messages
    Aug  7 09:29:54 localhost foobar.sh[29607]: #033[60G[#033[1;32m  OK  #033[0;39m]#015#033[60G[#033[1;31mFAILED#033[0;39m]

This is a regression issue caused by the commit f88dbd98e992 where
consoletype command was dropped.

Under systemd service units, standard input is associated with
/dev/null by default:

    # systemctl show -p StandardInput foobar.service
    StandardInput=null

  man 5 systemd.exec:

     StandardInput=
         Controls where file descriptor 0 (STDIN) of the executed
         processes is connected to. Takes one of null, tty,
         tty-force, tty-fail, data, file:path, socket or fd:name.

         If null is selected, standard input will be connected to
         /dev/null, i.e. all read attempts by the process will
         result in immediate EOF.

consoletype command interprets /dev/null as serial:

    # consoletype &lt; /dev/null
    warning: consoletype is now deprecated, and will be removed in the near future!
    warning: use tty (1) instead! More info: 'man 1 tty'
    serial

The commit f88dbd98e992 overlooks this situation.

To fix this issue, check also "not a tty" to cover the case where
standard input is /dev/null.

Note that LANG=C is needed because the message "not a tty" varies
depending on locales.

(cherry picked from commit fdcc55839df2334d7a7567de1f02f07ee7a69561)
</pre>
</div>
</content>
</entry>
<entry>
<title>network/ifup/ifdown: deprecations warnings redirected to stderr</title>
<updated>2018-08-06T11:05:14+00:00</updated>
<author>
<name>David Kaspar [Dee'Kej]</name>
<email>dkaspar@redhat.com</email>
</author>
<published>2018-08-06T09:15:47+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/forks/initscripts/commit/?id=b163b3a66dc3684181f219f424e2dd81eff691f6'/>
<id>b163b3a66dc3684181f219f424e2dd81eff691f6</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>network/ifup/ifdown: allow disabling of deprecation warnings</title>
<updated>2018-08-03T11:06:43+00:00</updated>
<author>
<name>David Kaspar [Dee'Kej]</name>
<email>dkaspar@redhat.com</email>
</author>
<published>2018-08-02T13:05:17+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/forks/initscripts/commit/?id=335a6a84f618515c6902d374e391a301d0f43f6c'/>
<id>335a6a84f618515c6902d374e391a301d0f43f6c</id>
<content type='text'>
  ... by checking existence of /etc/sysconfig/disable-deprecation-warnings
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
  ... by checking existence of /etc/sysconfig/disable-deprecation-warnings
</pre>
</div>
</content>
</entry>
<entry>
<title>network/ifup/ifdown: deprecation warnings for 'network-scripts' added</title>
<updated>2018-08-03T11:03:15+00:00</updated>
<author>
<name>David Kaspar [Dee'Kej]</name>
<email>dkaspar@redhat.com</email>
</author>
<published>2018-08-01T15:41:08+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/forks/initscripts/commit/?id=285473ae10611849129eb16050ea6d6b8d84388d'/>
<id>285473ae10611849129eb16050ea6d6b8d84388d</id>
<content type='text'>
  In case of 'network' service these warnings are displayed only once,
  to not spam unnecessarily user's journalctl if they have many NICs.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
  In case of 'network' service these warnings are displayed only once,
  to not spam unnecessarily user's journalctl if they have many NICs.
</pre>
</div>
</content>
</entry>
<entry>
<title>specfile: netconsole service moved to /usr/libexec</title>
<updated>2018-06-14T14:11:54+00:00</updated>
<author>
<name>David Kaspar [Dee'Kej]</name>
<email>dkaspar@redhat.com</email>
</author>
<published>2018-06-12T15:24:57+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/forks/initscripts/commit/?id=f5e4588e0e73046ed0995c148e8a4619b9ba69fb'/>
<id>f5e4588e0e73046ed0995c148e8a4619b9ba69fb</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>netreport functionality dropped</title>
<updated>2018-05-30T12:33:04+00:00</updated>
<author>
<name>David Kaspar [Dee'Kej]</name>
<email>dkaspar@redhat.com</email>
</author>
<published>2018-05-24T14:06:03+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/forks/initscripts/commit/?id=9b2dbe00100d4e1077404b9d781f35adad979467'/>
<id>9b2dbe00100d4e1077404b9d781f35adad979467</id>
<content type='text'>
  This concept is quite outdated, and not sane to use at all.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
  This concept is quite outdated, and not sane to use at all.
</pre>
</div>
</content>
</entry>
<entry>
<title>networks moved into 'setup' package</title>
<updated>2018-05-30T12:33:04+00:00</updated>
<author>
<name>David Kaspar [Dee'Kej]</name>
<email>dkaspar@redhat.com</email>
</author>
<published>2018-05-18T14:59:18+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/forks/initscripts/commit/?id=b4a33f400394b4f89bac723977f6f356252a3386'/>
<id>b4a33f400394b4f89bac723977f6f356252a3386</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>lang.{sh,csh} moved into setup package</title>
<updated>2018-05-30T12:33:04+00:00</updated>
<author>
<name>David Kaspar [Dee'Kej]</name>
<email>dkaspar@redhat.com</email>
</author>
<published>2018-05-24T14:00:22+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/forks/initscripts/commit/?id=f88dbd98e992635ee569fb6349f49cb6d215c434'/>
<id>f88dbd98e992635ee569fb6349f49cb6d215c434</id>
<content type='text'>
  Other references to these files were removed, as well as irrelevant
  info in sysconfig.txt, and some dead code in init.d/functions file.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
  Other references to these files were removed, as well as irrelevant
  info in sysconfig.txt, and some dead code in init.d/functions file.
</pre>
</div>
</content>
</entry>
<entry>
<title>lang.{sh,csh} cleanup before moving to 'setup' package</title>
<updated>2018-05-30T12:33:04+00:00</updated>
<author>
<name>David Kaspar [Dee'Kej]</name>
<email>dkaspar@redhat.com</email>
</author>
<published>2018-05-18T16:30:20+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/forks/initscripts/commit/?id=59928ce72da10f1c45a0aa08c9dd3a439fdd74a0'/>
<id>59928ce72da10f1c45a0aa08c9dd3a439fdd74a0</id>
<content type='text'>
  The dependance on 'consoletype' binary has been removed.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
  The dependance on 'consoletype' binary has been removed.
</pre>
</div>
</content>
</entry>
</feed>
