<feed xmlns='http://www.w3.org/2005/Atom'>
<title>initscripts/etc/rc.d/init.d/functions, branch 10.08</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>init.d/functions: Make usage msgs more clear</title>
<updated>2020-11-06T07:02:11+00:00</updated>
<author>
<name>Jan Macku</name>
<email>jamacku@redhat.com</email>
</author>
<published>2020-11-06T07:02:11+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/forks/initscripts/commit/?id=ebad1346df3ff9d32cbf2dc9b02d20e1d734f1e0'/>
<id>ebad1346df3ff9d32cbf2dc9b02d20e1d734f1e0</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>rc.d/functions: replace grep's --quiet with -q</title>
<updated>2020-08-18T07:01:01+00:00</updated>
<author>
<name>Chaitanya Vadrevu</name>
<email>chaitanya973@gmail.com</email>
</author>
<published>2020-08-18T07:01:01+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/forks/initscripts/commit/?id=d2243a0912bbad57b1b413f2c15599341cb2aa76'/>
<id>d2243a0912bbad57b1b413f2c15599341cb2aa76</id>
<content type='text'>
Some versions of grep (like busybox's) do not support --quiet.
So use -q instead like in the rest of the file.

Signed-off-by: Chaitanya Vadrevu &lt;chaitanya.vadrevu@ni.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Some versions of grep (like busybox's) do not support --quiet.
So use -q instead like in the rest of the file.

Signed-off-by: Chaitanya Vadrevu &lt;chaitanya.vadrevu@ni.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>Remove deprecated option -m of pidof</title>
<updated>2020-03-24T10:04:57+00:00</updated>
<author>
<name>Jan Macku</name>
<email>jamacku@redhat.com</email>
</author>
<published>2020-03-24T10:04:57+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/forks/initscripts/commit/?id=78d63a837ca18cd88f6b79e11211805bea05cf0d'/>
<id>78d63a837ca18cd88f6b79e11211805bea05cf0d</id>
<content type='text'>
Resolves: #1798128

Co-authored-by: Lukáš Nykrýn &lt;lnykryn@redhat.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Resolves: #1798128

Co-authored-by: Lukáš Nykrýn &lt;lnykryn@redhat.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>rc.d/functions: fix escape sequence being output under systemd service units</title>
<updated>2019-08-07T07:32:27+00:00</updated>
<author>
<name>HATAYAMA Daisuke</name>
<email>d.hatayama@fujitsu.com</email>
</author>
<published>2019-08-07T07:32:27+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/forks/initscripts/commit/?id=fdcc55839df2334d7a7567de1f02f07ee7a69561'/>
<id>fdcc55839df2334d7a7567de1f02f07ee7a69561</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.</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.</pre>
</div>
</content>
</entry>
<entry>
<title>rc.d/functions: remove support cgroups</title>
<updated>2019-06-06T15:31:08+00:00</updated>
<author>
<name>Lukas Nykryn</name>
<email>lnykryn@redhat.com</email>
</author>
<published>2019-03-29T11:05:57+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/forks/initscripts/commit/?id=0330dd3457ecefbbca58eab8ed83f9ced56b0081'/>
<id>0330dd3457ecefbbca58eab8ed83f9ced56b0081</id>
<content type='text'>
Now with systemd, this does not work pretty well and users really should
use systemd unit-files for this.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Now with systemd, this does not work pretty well and users really should
use systemd unit-files for this.
</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>Repository scheme updated to new layout</title>
<updated>2018-05-30T10:32:22+00:00</updated>
<author>
<name>David Kaspar [Dee'Kej]</name>
<email>dkaspar@redhat.com</email>
</author>
<published>2018-05-25T18:01:54+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/forks/initscripts/commit/?id=a145ddda284570e57413e37f025c3657205e17d8'/>
<id>a145ddda284570e57413e37f025c3657205e17d8</id>
<content type='text'>
  NOTE: This commit just moves files around, without actually fixing the
        Makefiles and specfile. See follow up commits which resolve this.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
  NOTE: This commit just moves files around, without actually fixing the
        Makefiles and specfile. See follow up commits which resolve this.
</pre>
</div>
</content>
</entry>
</feed>
