aboutsummaryrefslogtreecommitdiffstats
path: root/package/system/procd
Commit message (Collapse)AuthorAgeFilesLines
* procd: update to latest git HEADJohn Crispin2017-11-101-3/+3
| | | | | | | 7c9aa7c service: add data within the service itself e2b819a service: fix calls to blobmsg_parse() Signed-off-by: John Crispin <john@phrozen.org>
* procd: service_data: Support data within the service itselfPierre Lebleu2017-11-101-0/+15
| | | | | | Use the same approach than the service_triggers for the service_data. Signed-off-by: Pierre Lebleu <pme.lebleu@gmail.com>
* procd: update to latest git HEADJohn Crispin2017-11-061-3/+3
| | | | | | | | | | 53e92d4 procd: lower the logging threshold b39c362 service: Start services normally when seccomp is disabled 3ba6b45 procd: add missing new lines inside debug code 56a02e3 service: fix service_handle_event array d4a183f service: fix SERVICE_ATTR_NAME usage in service_handle_set Signed-off-by: John Crispin <john@phrozen.org>
* procd: Always tell cmake whether to include seccomp support or notMichal Sojka2017-11-031-3/+2
| | | | | | | | | Without this change, when a user disables seccomp support in .config, procd does not get recompiled unless the package is cleaned manually. It is because when -D option is missing from cmake command line, cmake uses cached value from the previous run where seccomp was enabled. Signed-off-by: Michal Sojka <sojkam1@fel.cvut.cz>
* procd: use LN macroHans Dedecker2017-10-031-1/+1
| | | | Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* procd: Install seccomp-trace symlinkMichal Sojka2017-09-281-0/+1
| | | | Signed-off-by: Michal Sojka <sojkam1@fel.cvut.cz>
* procd: update to latest git HEADJohn Crispin2017-09-281-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | ee582d1 instance: properly compare and reload respawn config 260a4cd utrace: Start the tracee only after uloop initialization 520ad3c utrace: Switch all logging to ulog 1c48104 utrace: Support non-contiguous syscall numbers 582cf97 utrace: Forward SIGTERM to the traced process 32534f7 utrace: Report ptrace errors ccde3fb seccomp: Improve error message 7f9b174 preload-seccomp: Use proper log level for error messages e3c4302 Start seccomp-enabled services via seccomp-trace 5e4ad02 seccomp: Log seccomp violations with utrace 2661b2f utrace: Use PTHREAD_SEIZE instead of PTHREAD_TRACEME b5d53c6 utrace: Deliver signals to traced processes b416ed9 utrace: Support tracing multi-threaded processes and vfork 8b7d47a utrace: Trace processes across forks c6b6ec6 utrace: Sort syscalls by number of invocations 592c532 Update trace attribute c8faedc Do not disable seccomp when configuration is not found 017f3a1 utrace: Fix off-by-one errors 5acaf15 utrace: Fix environment initialization Signed-off-by: John Crispin <john@phrozen.org>
* procd: mdns: Support txt values with spacesKarl Palsson2017-09-011-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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 <karlp@etactica.com>
* procd: update to latest git HEADJohn Crispin2017-08-221-3/+3
| | | | | | 54b46a3 procd: send ubus notify when a config file has changed Signed-off-by: John Crispin <john@phrozen.org>
* procd: fix hotplug.json syntaxFlorian Eckert2017-08-181-15/+11
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* procd: fix hotplug-preinit.json syntaxFlorian Eckert2017-08-181-4/+4
| | | | Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* procd: update to the latest git HEADHans Dedecker2017-08-081-3/+3
| | | | | | a17e1e8 watchdog: fix inline watchdog_get_magicclose function prototype Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* procd: update to latest git HEADJohn Crispin2017-07-311-3/+3
| | | | | | f062b30 procd: Do not leak pipe file descriptors to children Signed-off-by: John Crispin <john@phrozen.org>
* procd: update to latest versionMatthias Schiffer2017-07-201-4/+4
| | | | | | | | | | 17026f4 system: return ubus error when sysupgrade_exec_upgraded() has failed 13f252f upgraded: Check chroot() return value 85ccb95 init: Check chroot return value in sysupgrade_exec_upgraded() 76dcbee upgraded: improve error handling d749b2a upgraded: register stage2 process in uloop as intended Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
* procd: support term_timeout parameterJo-Philipp Wich2017-06-262-2/+2
| | | | | | | | | Expose "term_timeout" parameter in procd.sh to allow init scripts to request a longer termination timeout. This is required to fix FS#859 in a later commit. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* procd: assign /dev/tty* nodes to "tty" groupJo-Philipp Wich2017-06-262-1/+5
| | | | | | | | Adjust default permissions and ownership of /dev/tty* nodes from 0600/root:root to 0660/root:tty in order to support granting unprivileged user access when needed. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* procd: update to latest versionHans Dedecker2017-06-231-3/+3
| | | | | | e5e99c4 watchdog: add support for starting/stopping kernel watchdog Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* procd: update to latest git HEADDaniel Golle2017-06-191-3/+3
| | | | | | | | | | | 453116e system: introduce new attribute board_name e5b963a preinit: define _GNU_SOURCE e5ff8ca upgraded: cmake: Find and include uloop.h f367ec6 hotplug: fix a memory leak in handle_button_complete() 796ba3b service/service_stopped(): fix a use-after-free 79bbe6d system: return legacy board name Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* procd: update to latest git HEADMatthias Schiffer2017-05-301-3/+3
| | | | | | e7bb2c8 upgraded: define __GNU_SOURCE Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
* procd: remove procd-nand packageMatthias Schiffer2017-05-293-435/+3
| | | | | | | | | | | We always want to support staged upgrades now, so it's better to include upgraded into the main package. /lib/upgrade/nand.sh is moved to base-files. The procd-nand-firstboot package is removed for now, it may return later as a separate package. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
* procd: update to latest git HEADMatthias Schiffer2017-05-291-3/+3
| | | | | | | | | | | | | | | | 992b796 rcS: add missing fcntl.h include 63789e5 init: add support for sysupgrades triggered from preinit 5b1fb35 Remove code that has become unnecessary after sysupgrade changes 5918b6d upgraded: add support for passing a "command" argument to stage2 056d8dd upgraded: link dynamically, chroot during exec 7c6cf55 system: always support staged sysupgrade d42b21e procd/rcS: Use /dev/null as stdin e0098d4 service/instance: add an auto start option 1247db1 procd: Log initscript output prefixed with script name 8d720b2 procd: Don't use syslog before its initialization 2555474 procd: Add missing \n in debug message Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
* procd: prepare NAND sysupgrade for making upgraded dynamically linkedMatthias Schiffer2017-05-291-2/+3
| | | | | | | | Use install_bin to copy upgraded with all dependencies. The old name /tmp/upgraded is temporarily retained as a symlink to avoid breaking things. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
* procd: clean up trailing whitespace in nand.shMatthias Schiffer2017-05-291-2/+2
| | | | Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
* procd: nand: make it possible to configure kernel and ubi partitionChristian Lamparter2017-03-221-2/+2
| | | | | | | | | | With this patch, the nand.sh script no longer overwrites CI_KERNELPART and CI_UBIPART if they have been set before. This allows platforms specify alternative values for these variables. Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
* procd.sh: use parameterized respawn valuesClaudiu Brasovean2017-03-071-1/+3
| | | | | | | | | | 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 <cbrasho@gmail.com>
* procd: update to git HEAD versionHans Dedecker2017-03-061-3/+3
| | | | | | | 8f218f5 procd: service gets deleted when its last instance is freed 35209a0 procd: update modprobe path Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* procd: update to latest git HEADJohn Crispin2017-02-151-3/+3
| | | | | | | 5f91241 procd: add cancel_timeout on rc scripts when a runtime_timeout is specified 961dc69 procd: stop service using SIGKILL if SIGTERM failed to do so Signed-off-by: John Crispin <john@phrozen.org>
* procd: fix default timeout for reload trigger actionsDenis Osvald2017-02-151-5/+2
| | | | | | | | | | | | | 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 <denis.osvald@sartura.hr>
* procd: update to the latest versionFelix Fietkau2017-02-111-3/+3
| | | | | | Fixes compatibility issues with glibc 2.25 Signed-off-by: Felix Fietkau <nbd@nbd.name>
* procd: update to latest git HEADJohn Crispin2017-02-091-3/+3
| | | | | | cdc3dab ujail: fix signal forwarding Signed-off-by: John Crispin <john@phrozen.org>
* procd: update procd.sh to disallow signal-numbers, enforce signal-namesBastian Bittorf2017-01-261-1/+4
| | | | | | | | | | | | 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 <bb@npl.de>
* procd: update to latest git HEADMatthias Schiffer2017-01-261-3/+3
| | | | | | 0f58977 init: fix /tmp permissions on zram Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
* procd: add support for overriding the tar sysupgrade board nameFelix Fietkau2017-01-111-1/+10
| | | | | | Useful for providing images that work for multiple devices Signed-off-by: Felix Fietkau <nbd@nbd.name>
* procd: update mirror hashJohn Crispin2017-01-101-1/+1
| | | | Signed-off-by: John Crispin <john@phrozen.org>
* procd: update to latest git HEADJohn Crispin2017-01-101-2/+2
| | | | | | f706903 ujail: add basic /dev files Signed-off-by: John Crispin <john@phrozen.org>
* build: use mkhash to replace various quirky md5sum/openssl callsFelix Fietkau2017-01-051-1/+1
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* treewide: clean up and unify PKG_VERSION for git based downloadsFelix Fietkau2016-12-221-6/+3
| | | | | | Also use default defintions for PKG_SOURCE_SUBDIR, PKG_SOURCE Signed-off-by: Felix Fietkau <nbd@nbd.name>
* procd: update procd.sh to support sending kill signal to a serviceHans Dedecker2016-12-201-1/+17
| | | | | | | | 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 <dedeckeh@gmail.com>
* treewide: clean up download hashesFelix Fietkau2016-12-161-1/+1
| | | | | | Replace *MD5SUM with *HASH, replace MD5 hashes with SHA256 Signed-off-by: Felix Fietkau <nbd@nbd.name>
* procd: add support for service signalsJo-Philipp Wich2016-12-142-4/+4
| | | | | | | | | | | | | | | | 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 <jo@mein.io>
* procd: update to the latest version, fixes killing jailed processesFelix Fietkau2016-12-021-3/+3
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* procd: update to the latest version, fixes a few minor service handling issuesFelix Fietkau2016-10-191-3/+3
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* procd: Allow initscripts to start one daemon instance at a timePierre Lebleu2016-10-181-1/+1
| | | | Signed-off-by: Pierre Lebleu <pierre.lebleu@technicolor.com>
* procd: update sha256sumHauke Mehrtens2016-10-151-1/+1
| | | | | | | | Commit f5c741b5e02 updated procd to a more recent version, but did not change the hash of the tar. Update it to the one matching the file on the download servers. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* procd: update to latest git HEAD revisionJohn Crispin2016-10-151-2/+2
| | | | Signed-off-by: John Crispin <john@phrozen.org>
* source: Switch to xz for packages and tools where possibleDaniel Engberg2016-10-061-1/+2
| | | | | | | | | | | * Change git packages to xz * Update mirror checksums in packages where they are used * Change a few source tarballs to xz if available upstream * Remove unused lines in packages we're touching, requested by jow- and blogic * We're relying more on xz-utils so add official mirror as primary source, master site as secondary. * Add SHA256 checksums to multiple git tarball packages Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
* procd: update to latest git HEADJohn Crispin2016-09-281-2/+2
| | | | | | | | this adds 2 new inittab handlers * askconsolelate * respawnlate Signed-off-by: John Crispin <john@phrozen.org>
* procd: update to latest git HEADJohn Crispin2016-08-151-2/+2
| | | | | | adds O_PATH define Signed-off-by: John Crispin <john@phrozen.org>
* sysupgrade: unmount filesystems before rebootMathias Kresin2016-08-041-0/+2
| | | | | | | | | | | | | | | 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 <dev@kresin.me>
* procd: add default timeout for reload trigger actionsFelix Fietkau2016-07-291-0/+10
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>