<feed xmlns='http://www.w3.org/2005/Atom'>
<title>initscripts/etc, branch 10.11.4</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>spec: Move service script into subpackage</title>
<updated>2021-05-31T14:03:53+00:00</updated>
<author>
<name>Jan Macku</name>
<email>jamacku@redhat.com</email>
</author>
<published>2021-04-07T14:42:24+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/forks/initscripts/commit/?id=ed2056c28bb76d9a0e7c201e210d2767ab7f164a'/>
<id>ed2056c28bb76d9a0e7c201e210d2767ab7f164a</id>
<content type='text'>
This changes moves service script into initscripts-service subpackage.
The subpackage could be install without main package.

This change allows audit not to require initscripts and require only
initscripts-service instead.

Requested by: msekleta@redhat.com
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This changes moves service script into initscripts-service subpackage.
The subpackage could be install without main package.

This change allows audit not to require initscripts and require only
initscripts-service instead.

Requested by: msekleta@redhat.com
</pre>
</div>
</content>
</entry>
<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>Allow updating rfkill switch status while in readonly root mode</title>
<updated>2020-11-05T13:50:52+00:00</updated>
<author>
<name>Jan Macku</name>
<email>jamacku@redhat.com</email>
</author>
<published>2020-11-05T13:50:52+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/forks/initscripts/commit/?id=9b0651b14849046303cd635648212d6ba8dc619f'/>
<id>9b0651b14849046303cd635648212d6ba8dc619f</id>
<content type='text'>
Adding rfkill switch status into rwtab.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Adding rfkill switch status into rwtab.</pre>
</div>
</content>
</entry>
<entry>
<title>Allow updating mlocate.db while in readonly root mode</title>
<updated>2020-09-18T11:00:15+00:00</updated>
<author>
<name>Jan Macku</name>
<email>jamacku@redhat.com</email>
</author>
<published>2020-09-18T10:41:45+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/forks/initscripts/commit/?id=c59a7612bac9b9d0c2b55eb9a251bb43690220b0'/>
<id>c59a7612bac9b9d0c2b55eb9a251bb43690220b0</id>
<content type='text'>
Fixes issue when updatedb does not have the ability to update the mlocate.db
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes issue when updatedb does not have the ability to update the mlocate.db
</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>rwtab: Add support for chrony</title>
<updated>2020-07-14T13:42:52+00:00</updated>
<author>
<name>Jan Macku</name>
<email>jamacku@redhat.com</email>
</author>
<published>2020-07-14T13:42:52+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/forks/initscripts/commit/?id=ff4fcd53fae5189b6a4692647463823ea7d1c16c'/>
<id>ff4fcd53fae5189b6a4692647463823ea7d1c16c</id>
<content type='text'>
Chrony isn't able to write into its files while stateless mode is
active.This patch should avoid this issue.

(cherry picked from commit 21c44a8e9a68a3a9d39a7fe003096434cea904ea)</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Chrony isn't able to write into its files while stateless mode is
active.This patch should avoid this issue.

(cherry picked from commit 21c44a8e9a68a3a9d39a7fe003096434cea904ea)</pre>
</div>
</content>
</entry>
<entry>
<title>Replace grep -EL with subshell since -L changed behaviour</title>
<updated>2020-03-24T10:51:45+00:00</updated>
<author>
<name>Jan Macku</name>
<email>jamacku@redhat.com</email>
</author>
<published>2019-01-08T16:23:13+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/forks/initscripts/commit/?id=55ee446c0715b013e6d54860ae65e55baf544dc3'/>
<id>55ee446c0715b013e6d54860ae65e55baf544dc3</id>
<content type='text'>
Sugested by @lnykryn
Related to issue #300
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Sugested by @lnykryn
Related to issue #300
</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>Repalace hardcoded tests for yes and no with testing functions</title>
<updated>2019-09-12T10:32:36+00:00</updated>
<author>
<name>Jan Macku</name>
<email>jamacku@redhat.com</email>
</author>
<published>2019-09-12T10:32:36+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/forks/initscripts/commit/?id=66d26269a83229b7340f7ace06dfc715c04df7d8'/>
<id>66d26269a83229b7340f7ace06dfc715c04df7d8</id>
<content type='text'>
Resolve issue: #42</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Resolve issue: #42</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>
</feed>
