<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mtk-20170518/package/system/procd/files, branch v17.01.5</title>
<subtitle>MTK 20170518 : Mediatek SDK based on OpenWRT Barrier Breaker</subtitle>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/'/>
<entry>
<title>procd: mdns: Support txt values with spaces</title>
<updated>2017-12-13T15:29:22+00:00</updated>
<author>
<name>Karl Palsson</name>
<email>karlp@etactica.com</email>
</author>
<published>2017-08-30T17:44:00+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=c58e824acc3c5fcac6ce91584eaf704e99be52ef'/>
<id>c58e824acc3c5fcac6ce91584eaf704e99be52ef</id>
<content type='text'>
Properly quote the arguments so that you can register a service with TXT
entries that contains spaces.

Example:
   procd_add_mdns myservice tcp 9999 "key=descriptive text field 1" \
         "another=something equally verbose"

Output before:
$ avahi-browse -r -v _myservice._tcp
_myservice._tcp      local
   hostname = [blah.local]
   address = [192.168.255.74]
   port = [9999]
   txt = ["verbose" "equally" "another=something" "1" "field" "text" "key=descriptive"]

Output now:
$ avahi-browse -r -v _myservice._tcp
_myservice._tcp      local
   hostname = [blah.local]
   address = [192.168.255.74]
   port = [9999]
   txt = ["another=something equally verbose" "key=descriptive text field 1"]

Signed-off-by: Karl Palsson &lt;karlp@etactica.com&gt;
(cherry picked from commit 7a423c389a162d2945901f0b5e7c604d36c64526)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Properly quote the arguments so that you can register a service with TXT
entries that contains spaces.

Example:
   procd_add_mdns myservice tcp 9999 "key=descriptive text field 1" \
         "another=something equally verbose"

Output before:
$ avahi-browse -r -v _myservice._tcp
_myservice._tcp      local
   hostname = [blah.local]
   address = [192.168.255.74]
   port = [9999]
   txt = ["verbose" "equally" "another=something" "1" "field" "text" "key=descriptive"]

Output now:
$ avahi-browse -r -v _myservice._tcp
_myservice._tcp      local
   hostname = [blah.local]
   address = [192.168.255.74]
   port = [9999]
   txt = ["another=something equally verbose" "key=descriptive text field 1"]

Signed-off-by: Karl Palsson &lt;karlp@etactica.com&gt;
(cherry picked from commit 7a423c389a162d2945901f0b5e7c604d36c64526)
</pre>
</div>
</content>
</entry>
<entry>
<title>procd.sh: use parameterized respawn values</title>
<updated>2017-12-13T13:39:02+00:00</updated>
<author>
<name>Claudiu Brasovean</name>
<email>cbrasho@gmail.com</email>
</author>
<published>2017-02-28T09:51:01+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=56b9f0ffc0cbceabe3636c19baaf6c27f34ebe1e'/>
<id>56b9f0ffc0cbceabe3636c19baaf6c27f34ebe1e</id>
<content type='text'>
continue work started here: http://patchwork.ozlabs.org/patch/520859

Extend /etc/config/system with parameters to set the default respawn treshold and respawn timeout
	for procd launched services that have respawn enabled.
This results in cleaner init scripts, while making sure services have respawn parameters set.

Signed-off-by: Claudiu Brasovean &lt;cbrasho@gmail.com&gt;
(cherry picked from commit c70c6ac070223114ee8c9f33e5e416edb005ca83)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
continue work started here: http://patchwork.ozlabs.org/patch/520859

Extend /etc/config/system with parameters to set the default respawn treshold and respawn timeout
	for procd launched services that have respawn enabled.
This results in cleaner init scripts, while making sure services have respawn parameters set.

Signed-off-by: Claudiu Brasovean &lt;cbrasho@gmail.com&gt;
(cherry picked from commit c70c6ac070223114ee8c9f33e5e416edb005ca83)
</pre>
</div>
</content>
</entry>
<entry>
<title>procd: fix default timeout for reload trigger actions</title>
<updated>2017-02-15T08:35:12+00:00</updated>
<author>
<name>Denis Osvald</name>
<email>denis.osvald@sartura.hr</email>
</author>
<published>2017-02-14T16:08:49+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=cbd69f7e4e8fbd509d36d1d272a6f7255e7a4fcd'/>
<id>cbd69f7e4e8fbd509d36d1d272a6f7255e7a4fcd</id>
<content type='text'>
Default trigger action timeout was added to procd.sh in commit f88e3a4c0
(procd: add default timeout for reload trigger actions)
However, the timeout value was not placed under the correct JSON-script
array nesting level and thus did not apply.

To fix this and make the timeout actually apply to the reload triggers,
we place it in the correct scope, that is the per-trigger array.

Fixes: f88e3a4c0abb60bb76a7678dd30dfdc8a808a2f1
Signed-off-by: Denis Osvald &lt;denis.osvald@sartura.hr&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Default trigger action timeout was added to procd.sh in commit f88e3a4c0
(procd: add default timeout for reload trigger actions)
However, the timeout value was not placed under the correct JSON-script
array nesting level and thus did not apply.

To fix this and make the timeout actually apply to the reload triggers,
we place it in the correct scope, that is the per-trigger array.

Fixes: f88e3a4c0abb60bb76a7678dd30dfdc8a808a2f1
Signed-off-by: Denis Osvald &lt;denis.osvald@sartura.hr&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>procd: update procd.sh to disallow signal-numbers, enforce signal-names</title>
<updated>2017-02-01T14:40:20+00:00</updated>
<author>
<name>Bastian Bittorf</name>
<email>bb@npl.de</email>
</author>
<published>2017-01-13T19:22:51+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=be7480cb5a5a4879f41acb6e4f11c8759d178b75'/>
<id>be7480cb5a5a4879f41acb6e4f11c8759d178b75</id>
<content type='text'>
A given signal-name is now converted to the corresonding number. In general
it's good style to use names (readability) and it's more portable: signal
numbers can be architecture-dependent, so we are more safe giving names.

A real world example is signal 10, which is BUS on ramips and USR1 on PPC.

All users of 'procd_send_signal' must change their code to reflect this.

Signed-off-by: Bastian Bittorf &lt;bb@npl.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
A given signal-name is now converted to the corresonding number. In general
it's good style to use names (readability) and it's more portable: signal
numbers can be architecture-dependent, so we are more safe giving names.

A real world example is signal 10, which is BUS on ramips and USR1 on PPC.

All users of 'procd_send_signal' must change their code to reflect this.

Signed-off-by: Bastian Bittorf &lt;bb@npl.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>procd: add support for overriding the tar sysupgrade board name</title>
<updated>2017-01-11T12:40:36+00:00</updated>
<author>
<name>Felix Fietkau</name>
<email>nbd@nbd.name</email>
</author>
<published>2017-01-08T13:26:57+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=4d8da82c29e9c2c1691d16977f41bfe27da69f17'/>
<id>4d8da82c29e9c2c1691d16977f41bfe27da69f17</id>
<content type='text'>
Useful for providing images that work for multiple devices

Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Useful for providing images that work for multiple devices

Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>procd: update procd.sh to support sending kill signal to a service</title>
<updated>2016-12-20T08:35:54+00:00</updated>
<author>
<name>Hans Dedecker</name>
<email>dedeckeh@gmail.com</email>
</author>
<published>2016-12-19T22:00:21+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=bbe825c74d15d4ea5bd9b2ef11da99145d03a40b'/>
<id>bbe825c74d15d4ea5bd9b2ef11da99145d03a40b</id>
<content type='text'>
Add procd_send_signal which allows to send an optional specified
kill signal to one specified  or all instances of a given service.
By default SIGHUP is sent if no signal is specified

Signed-off-by: Hans Dedecker &lt;dedeckeh@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add procd_send_signal which allows to send an optional specified
kill signal to one specified  or all instances of a given service.
By default SIGHUP is sent if no signal is specified

Signed-off-by: Hans Dedecker &lt;dedeckeh@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>procd: add support for service signals</title>
<updated>2016-12-14T00:14:08+00:00</updated>
<author>
<name>Jo-Philipp Wich</name>
<email>jo@mein.io</email>
</author>
<published>2016-12-13T17:02:56+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=b22a20af450b19fb47235e684afcddb301221def'/>
<id>b22a20af450b19fb47235e684afcddb301221def</id>
<content type='text'>
Update procd to latest HEAD in order to introduce support for services signals:

- Adds a new service.signal ubus call to send a kill() signal to one or all
  running instances of a given service

- Adds a new "reload_signal" property which allows service init scripts to
  request procd to send a specific kill() signal on reload, instead of
  stopping and restarting running processes

Also fixes some potential memory leaks reported by cppcheck and an environment
variable corruption in the trace command.

Signed-off-by: Jo-Philipp Wich &lt;jo@mein.io&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Update procd to latest HEAD in order to introduce support for services signals:

- Adds a new service.signal ubus call to send a kill() signal to one or all
  running instances of a given service

- Adds a new "reload_signal" property which allows service init scripts to
  request procd to send a specific kill() signal on reload, instead of
  stopping and restarting running processes

Also fixes some potential memory leaks reported by cppcheck and an environment
variable corruption in the trace command.

Signed-off-by: Jo-Philipp Wich &lt;jo@mein.io&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>procd: Allow initscripts to start one daemon instance at a time</title>
<updated>2016-10-18T06:53:38+00:00</updated>
<author>
<name>Pierre Lebleu</name>
<email>pierre.lebleu@technicolor.com</email>
</author>
<published>2016-10-13T10:52:05+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=6bb11d52f3ae8ce8aa0a270c6ae305809af8b7ce'/>
<id>6bb11d52f3ae8ce8aa0a270c6ae305809af8b7ce</id>
<content type='text'>
Signed-off-by: Pierre Lebleu &lt;pierre.lebleu@technicolor.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Pierre Lebleu &lt;pierre.lebleu@technicolor.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>sysupgrade: unmount filesystems before reboot</title>
<updated>2016-08-04T16:19:46+00:00</updated>
<author>
<name>Mathias Kresin</name>
<email>dev@kresin.me</email>
</author>
<published>2016-08-02T20:29:31+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=3004298e625c47537877bfd1e95806fad7c39f27'/>
<id>3004298e625c47537877bfd1e95806fad7c39f27</id>
<content type='text'>
sysupgrade immediately reboots after flashing an image and doesn't
allow to unmount filesystems. At least in case the image used for
sysupgrade is stored on a FAT formatted usb flash drive, the following
warning is printed during the next mount of the flash drive:

FAT-fs (sda1): Volume was not properly unmounted. Some data may be
corrupt. Please run fsck.

Although a data corruption during read operations is unlikely, there is
no need to scare the users.

Signed-off-by: Mathias Kresin &lt;dev@kresin.me&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
sysupgrade immediately reboots after flashing an image and doesn't
allow to unmount filesystems. At least in case the image used for
sysupgrade is stored on a FAT formatted usb flash drive, the following
warning is printed during the next mount of the flash drive:

FAT-fs (sda1): Volume was not properly unmounted. Some data may be
corrupt. Please run fsck.

Although a data corruption during read operations is unlikely, there is
no need to scare the users.

Signed-off-by: Mathias Kresin &lt;dev@kresin.me&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>procd: add default timeout for reload trigger actions</title>
<updated>2016-07-29T14:41:09+00:00</updated>
<author>
<name>Felix Fietkau</name>
<email>nbd@nbd.name</email>
</author>
<published>2016-07-29T12:19:17+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=f88e3a4c0abb60bb76a7678dd30dfdc8a808a2f1'/>
<id>f88e3a4c0abb60bb76a7678dd30dfdc8a808a2f1</id>
<content type='text'>
Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</pre>
</div>
</content>
</entry>
</feed>
