oweals/procd.git
11 years agomake the verbose argument a bool
John Crispin [Wed, 10 Jul 2013 10:47:35 +0000 (12:47 +0200)]
make the verbose argument a bool

Signed-off-by: John Crispin <blogic@openwrt.org>
11 years agoinvalid pointer was passed to free()
John Crispin [Wed, 10 Jul 2013 10:36:53 +0000 (12:36 +0200)]
invalid pointer was passed to free()

Signed-off-by: John Crispin <blogic@openwrt.org>
11 years agoremove bogus subscriber
John Crispin [Wed, 10 Jul 2013 07:40:50 +0000 (09:40 +0200)]
remove bogus subscriber

Signed-off-by: John Crispin <blogic@openwrt.org>
11 years agoremove support fro trigegrs not linked to a service
John Crispin [Wed, 10 Jul 2013 07:25:47 +0000 (09:25 +0200)]
remove support fro trigegrs not linked to a service

Signed-off-by: John Crispin <blogic@openwrt.org>
11 years agothe delete handle should return an error if no service is named instead of killing...
John Crispin [Tue, 9 Jul 2013 15:23:33 +0000 (17:23 +0200)]
the delete handle should return an error if no service is named instead of killing all services

Signed-off-by: John Crispin <blogic@openwrt.org>
11 years agoFix logread file logging
John Crispin [Tue, 9 Jul 2013 12:33:14 +0000 (14:33 +0200)]
Fix logread file logging

This patch fixes logread and now appends to files instead of writting to the beginning the specified logfile. It also sets the access rights to 0600.

Signed-off-by: Peter Wagner <tripolar@gmx.at>
11 years agofix up the loging over network
John Crispin [Tue, 9 Jul 2013 09:49:55 +0000 (11:49 +0200)]
fix up the loging over network

Signed-off-by: John Crispin <blogic@openwrt.org>
11 years agodont list services that have no instances
John Crispin [Mon, 8 Jul 2013 20:12:28 +0000 (22:12 +0200)]
dont list services that have no instances

Signed-off-by: John Crispin <blogic@openwrt.org>
11 years agoclose stdin/out/err before forking an instance
John Crispin [Mon, 8 Jul 2013 19:40:14 +0000 (21:40 +0200)]
close stdin/out/err before forking an instance

Signed-off-by: John Crispin <blogic@openwrt.org>
11 years agoremove superflous define
John Crispin [Mon, 8 Jul 2013 16:40:09 +0000 (18:40 +0200)]
remove superflous define

Signed-off-by: John Crispin <blogic@openwrt.org>
11 years agoextend logread
John Crispin [Mon, 8 Jul 2013 11:10:47 +0000 (13:10 +0200)]
extend logread

* log to file
* add pidfile support
* reconnect when logging over network

11 years agobugfix of error handling while open()
Thomas Huehn [Fri, 5 Jul 2013 10:04:14 +0000 (12:04 +0200)]
bugfix of error handling while open()

The normal return value from open() is a non-negative integer.
In the case of an error, a value of -1 is returned instead.

Signed-off-by: Thomas Huehn <thomas@net.t-labs.tu-berlin.de>
11 years agoadd trigger support
John Crispin [Mon, 1 Jul 2013 16:34:13 +0000 (18:34 +0200)]
add trigger support

Signed-off-by: John Crispin <blogic@openwrt.org>
11 years agoproperly fix umask handling
John Crispin [Wed, 3 Jul 2013 17:16:09 +0000 (19:16 +0200)]
properly fix umask handling

https://dev.openwrt.org/ticket/13752
https://dev.openwrt.org/ticket/13794

Signed-off-by: John Crispin <blogic@openwrt.org>
11 years agoadd 2 second sleep before rebooting
John Crispin [Wed, 3 Jul 2013 13:55:26 +0000 (15:55 +0200)]
add 2 second sleep before rebooting

stderr is lost without this whena  crash happens

Signed-off-by: John Crispin <blogic@openwrt.org>
11 years agoadd support for the system.event node
John Crispin [Sat, 29 Jun 2013 20:19:04 +0000 (22:19 +0200)]
add support for the system.event node

Signed-off-by: John Crispin <blogic@openwrt.org>
11 years agoget rid of sleep() calls
John Crispin [Thu, 27 Jun 2013 17:14:03 +0000 (19:14 +0200)]
get rid of sleep() calls

Signed-off-by: John Crispin <blogic@openwrt.org>
11 years agomake ubus handling use uloop timers
John Crispin [Thu, 27 Jun 2013 17:09:12 +0000 (19:09 +0200)]
make ubus handling use uloop timers

Signed-off-by: John Crispin <blogic@openwrt.org>
11 years agoset global umask to 0
John Crispin [Mon, 24 Jun 2013 16:56:34 +0000 (18:56 +0200)]
set global umask to 0

Signed-off-by: John Crispin <blogic@openwrt.org>
11 years agoadd respawn support
John Crispin [Mon, 24 Jun 2013 16:31:51 +0000 (18:31 +0200)]
add respawn support

https://dev.openwrt.org/ticket/13751

Signed-off-by: John Crispin <blogic@openwrt.org>
11 years agomake add facility and level to logread output
John Crispin [Wed, 19 Jun 2013 20:14:57 +0000 (22:14 +0200)]
make add facility and level to logread output

Signed-off-by: John Crispin <blogic@openwrt.org>
11 years agodrop good bye message
John Crispin [Fri, 14 Jun 2013 08:19:00 +0000 (10:19 +0200)]
drop good bye message

Signed-off-by: John Crispin <blogic@openwrt.org>
11 years agoregister the system namespace on ubus regardless of the pid
John Crispin [Thu, 13 Jun 2013 12:48:04 +0000 (14:48 +0200)]
register the system namespace on ubus regardless of the pid

Signed-off-by: John Crispin <blogic@openwrt.org>
11 years agowe dont want to continue booting if sysupgrade is in progress
John Crispin [Mon, 10 Jun 2013 07:39:42 +0000 (09:39 +0200)]
we dont want to continue booting if sysupgrade is in progress

Signed-off-by: John Crispin <blogic@openwrt.org>
11 years agomerge ubus system namespace from rpcd codebase
John Crispin [Tue, 4 Jun 2013 14:12:50 +0000 (16:12 +0200)]
merge ubus system namespace from rpcd codebase

Signed-off-by: John Crispin <blogic@openwrt.org>
11 years agoload modules from /etc/modules-boot.d/ before preinit
John Crispin [Tue, 4 Jun 2013 09:46:00 +0000 (11:46 +0200)]
load modules from /etc/modules-boot.d/ before preinit

Signed-off-by: John Crispin <blogic@openwrt.org>
11 years agorestart stopped instances on update
Felix Fietkau [Fri, 31 May 2013 15:14:50 +0000 (17:14 +0200)]
restart stopped instances on update

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
11 years agoturn instance exit message into a debug message
Felix Fietkau [Fri, 31 May 2013 15:11:54 +0000 (17:11 +0200)]
turn instance exit message into a debug message

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
11 years agomake sure path exists before mknod is called
John Crispin [Thu, 30 May 2013 13:41:19 +0000 (15:41 +0200)]
make sure path exists before mknod is called

Signed-off-by: John Crispin <blogic@openwrt.org>
11 years agoupdate rcS.c to match new runqueue api changes
John Crispin [Wed, 29 May 2013 12:26:23 +0000 (14:26 +0200)]
update rcS.c to match new runqueue api changes

Signed-off-by: John Crispin <blogic@openwrt.org>
11 years agologread
John Crispin [Fri, 10 May 2013 21:22:24 +0000 (23:22 +0200)]
logread

11 years agoadd a rcS helper
John Crispin [Thu, 9 May 2013 18:14:27 +0000 (20:14 +0200)]
add a rcS helper

Signed-off-by: John Crispin <blogic@openwrt.org>
11 years agofix 32 wrap around bug when handling 64 bit time values
John Crispin [Thu, 25 Apr 2013 19:37:25 +0000 (21:37 +0200)]
fix 32 wrap around bug when handling 64 bit time values

Signed-off-by: John Crispin <blogic@openwrt.org>
11 years agoignore sigpipe
John Crispin [Mon, 22 Apr 2013 10:58:01 +0000 (12:58 +0200)]
ignore sigpipe

Signed-off-by: John Crispin <blogic@openwrt.org>
11 years agofix behaviour during sysupgrade
John Crispin [Thu, 18 Apr 2013 19:27:58 +0000 (21:27 +0200)]
fix behaviour during sysupgrade

Signed-off-by: John Crispin <blogic@openwrt.org>
11 years agomake reboot work without -f in failsafe
John Crispin [Thu, 18 Apr 2013 17:59:53 +0000 (19:59 +0200)]
make reboot work without -f in failsafe

Singed-off-by: John Crispin <blogic@openwrt.org>
11 years agowatchdog: add support for starting/stopping watchdog refresh
Felix Fietkau [Sun, 7 Apr 2013 11:44:32 +0000 (13:44 +0200)]
watchdog: add support for starting/stopping watchdog refresh

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
11 years agomake a few variables static
Felix Fietkau [Sat, 16 Mar 2013 14:50:59 +0000 (15:50 +0100)]
make a few variables static

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
11 years agoremove an unused function
Felix Fietkau [Sat, 16 Mar 2013 01:35:47 +0000 (02:35 +0100)]
remove an unused function

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
11 years agowhitespace cleanup
Felix Fietkau [Sat, 16 Mar 2013 01:35:14 +0000 (02:35 +0100)]
whitespace cleanup

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
11 years agoget rid of perror() calls, use ERROR() instead
Felix Fietkau [Sat, 16 Mar 2013 01:33:25 +0000 (02:33 +0100)]
get rid of perror() calls, use ERROR() instead

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
11 years agofix up the mount options to match what openwrt had before using procd as pid 1
John Crispin [Thu, 14 Mar 2013 18:36:07 +0000 (19:36 +0100)]
fix up the mount options to match what openwrt had before using procd as pid 1

Signed-off-by: John Crispin <blogic@openwrt.org>
11 years agoadd license headers
John Crispin [Sat, 9 Mar 2013 23:55:36 +0000 (00:55 +0100)]
add license headers

11 years agoadd new main.c and fix Makefile/headers
John Crispin [Fri, 8 Mar 2013 22:52:52 +0000 (23:52 +0100)]
add new main.c and fix Makefile/headers

11 years agoDPRINTF no longer exists
John Crispin [Sat, 9 Mar 2013 19:19:18 +0000 (20:19 +0100)]
DPRINTF no longer exists

11 years agoadd state handler
John Crispin [Fri, 8 Mar 2013 22:52:16 +0000 (23:52 +0100)]
add state handler

11 years agoadd debug handler
John Crispin [Sun, 10 Mar 2013 00:11:08 +0000 (01:11 +0100)]
add debug handler

11 years agoadd ubus system object
John Crispin [Fri, 8 Mar 2013 22:51:13 +0000 (23:51 +0100)]
add ubus system object

11 years agofix hotplug
John Crispin [Fri, 8 Mar 2013 22:49:24 +0000 (23:49 +0100)]
fix hotplug

11 years agoadd syslog and klog support
John Crispin [Fri, 8 Mar 2013 22:46:56 +0000 (23:46 +0100)]
add syslog and klog support

11 years agoadd inittab support
John Crispin [Fri, 8 Mar 2013 22:51:51 +0000 (23:51 +0100)]
add inittab support

11 years agoadd coldplug handler
John Crispin [Fri, 8 Mar 2013 22:46:22 +0000 (23:46 +0100)]
add coldplug handler

11 years agoadd preinit handler
John Crispin [Fri, 8 Mar 2013 22:46:05 +0000 (23:46 +0100)]
add preinit handler

11 years agoadd watchdog support
John Crispin [Fri, 8 Mar 2013 22:47:41 +0000 (23:47 +0100)]
add watchdog support

11 years agoadd early handler
John Crispin [Fri, 8 Mar 2013 22:45:49 +0000 (23:45 +0100)]
add early handler

11 years agoadd signal handler
John Crispin [Fri, 8 Mar 2013 22:48:01 +0000 (23:48 +0100)]
add signal handler

11 years agoadd mknod wrapper
John Crispin [Fri, 8 Mar 2013 22:48:20 +0000 (23:48 +0100)]
add mknod wrapper

11 years agoupdate .gitignore
John Crispin [Fri, 8 Mar 2013 22:54:06 +0000 (23:54 +0100)]
update .gitignore

11 years agoadd logread tool
John Crispin [Fri, 8 Mar 2013 22:47:23 +0000 (23:47 +0100)]
add logread tool

11 years agoadd udevtrigger tool
John Crispin [Fri, 8 Mar 2013 22:51:28 +0000 (23:51 +0100)]
add udevtrigger tool

11 years agoadd askfirst tool
John Crispin [Fri, 8 Mar 2013 22:45:21 +0000 (23:45 +0100)]
add askfirst tool

11 years agoinitialize dest in cmd_add_string() to not segfault on empty strings
Felix Fietkau [Sat, 23 Feb 2013 18:30:01 +0000 (19:30 +0100)]
initialize dest in cmd_add_string() to not segfault on empty strings

11 years agofix json_object_from_file return value handling
John Crispin [Sat, 23 Feb 2013 18:23:01 +0000 (19:23 +0100)]
fix json_object_from_file return value handling

Signed-off-by: John Crispin <blogic@openwrt.org>
11 years agohotplug-rule: fix off-by-one error in blobmsg string buffer realloc
Felix Fietkau [Wed, 20 Feb 2013 17:46:08 +0000 (18:46 +0100)]
hotplug-rule: fix off-by-one error in blobmsg string buffer realloc

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
11 years agohotplug: add extra validation for commands
Felix Fietkau [Wed, 13 Feb 2013 16:11:30 +0000 (17:11 +0100)]
hotplug: add extra validation for commands

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
11 years agohotplug: validate expression name element
Felix Fietkau [Wed, 13 Feb 2013 16:09:37 +0000 (17:09 +0100)]
hotplug: validate expression name element

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
11 years agoadd validation for hotplug commands
Felix Fietkau [Tue, 12 Feb 2013 16:25:56 +0000 (17:25 +0100)]
add validation for hotplug commands

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
11 years agohotplug: add parser for new hotplug event rulesets (work in progress, not integrated...
Felix Fietkau [Sun, 10 Feb 2013 22:52:46 +0000 (23:52 +0100)]
hotplug: add parser for new hotplug event rulesets (work in progress, not integrated yet)

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
11 years agouse calloc_a
Felix Fietkau [Mon, 31 Dec 2012 15:18:32 +0000 (16:18 +0100)]
use calloc_a

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
11 years agoadd support for deleting individual service instances
Felix Fietkau [Thu, 20 Dec 2012 16:44:36 +0000 (17:44 +0100)]
add support for deleting individual service instances

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
11 years agofix stale vlist/avl key for instance names
Felix Fietkau [Thu, 20 Dec 2012 16:43:47 +0000 (17:43 +0100)]
fix stale vlist/avl key for instance names

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
11 years agoadd instance file attribute with md5 hash checks
Felix Fietkau [Wed, 19 Dec 2012 17:02:39 +0000 (18:02 +0100)]
add instance file attribute with md5 hash checks

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
11 years agoraise ubusd priority to speed up message processing under load
Felix Fietkau [Sun, 16 Dec 2012 19:46:00 +0000 (20:46 +0100)]
raise ubusd priority to speed up message processing under load

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
11 years agoadd support for specifying process priority
Felix Fietkau [Sun, 16 Dec 2012 19:45:42 +0000 (20:45 +0100)]
add support for specifying process priority

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
11 years agofix service name pointer
Felix Fietkau [Sun, 16 Dec 2012 18:41:58 +0000 (19:41 +0100)]
fix service name pointer

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
12 years agoadd code for adding instances
Felix Fietkau [Sat, 30 Jun 2012 16:46:30 +0000 (18:46 +0200)]
add code for adding instances

12 years agofix a memleak
Felix Fietkau [Mon, 25 Jun 2012 21:25:03 +0000 (23:25 +0200)]
fix a memleak

12 years agoremove outer memdup
Felix Fietkau [Mon, 25 Jun 2012 19:07:35 +0000 (21:07 +0200)]
remove outer memdup

12 years agomemdup instance config
Felix Fietkau [Mon, 25 Jun 2012 19:02:38 +0000 (21:02 +0200)]
memdup instance config

12 years agoadd update_start/update_complete methods
Felix Fietkau [Mon, 25 Jun 2012 18:36:43 +0000 (20:36 +0200)]
add update_start/update_complete methods

12 years agoadd netdev ifindex support
Felix Fietkau [Sun, 24 Jun 2012 22:55:17 +0000 (00:55 +0200)]
add netdev ifindex support

12 years agoadd new debug macro
Felix Fietkau [Sun, 24 Jun 2012 22:03:01 +0000 (00:03 +0200)]
add new debug macro

12 years agofix env var handling, add support for filling blobmsg_list from arrays
Felix Fietkau [Sun, 24 Jun 2012 21:58:37 +0000 (23:58 +0200)]
fix env var handling, add support for filling blobmsg_list from arrays

12 years agosegfault
Felix Fietkau [Sun, 24 Jun 2012 21:51:25 +0000 (23:51 +0200)]
segfault

12 years agoadd debug
Felix Fietkau [Sun, 24 Jun 2012 21:50:18 +0000 (23:50 +0200)]
add debug

12 years agoadd a debug message for showing exit of instances
Felix Fietkau [Sun, 24 Jun 2012 21:42:44 +0000 (23:42 +0200)]
add a debug message for showing exit of instances

12 years agoadd a debug message for showing starting of instances
Felix Fietkau [Sun, 24 Jun 2012 21:41:32 +0000 (23:41 +0200)]
add a debug message for showing starting of instances

12 years agodump status info
Felix Fietkau [Sun, 24 Jun 2012 19:32:39 +0000 (21:32 +0200)]
dump status info

12 years agoadd code for starting instances
Felix Fietkau [Sun, 24 Jun 2012 19:16:14 +0000 (21:16 +0200)]
add code for starting instances

12 years agoadd blobmsg_list_for_each
Felix Fietkau [Sun, 24 Jun 2012 19:08:22 +0000 (21:08 +0200)]
add blobmsg_list_for_each

12 years agowhitespace fixup
Felix Fietkau [Sun, 24 Jun 2012 18:18:33 +0000 (20:18 +0200)]
whitespace fixup

12 years agodo not start instances with invalid config
Felix Fietkau [Sun, 24 Jun 2012 17:30:05 +0000 (19:30 +0200)]
do not start instances with invalid config

12 years agoenable restart on config change
Felix Fietkau [Sun, 24 Jun 2012 17:02:54 +0000 (19:02 +0200)]
enable restart on config change

12 years agoadd more parsing code
Felix Fietkau [Sun, 24 Jun 2012 16:43:46 +0000 (18:43 +0200)]
add more parsing code

12 years agoadd blobmsg_list_move
Felix Fietkau [Sun, 24 Jun 2012 16:38:54 +0000 (18:38 +0200)]
add blobmsg_list_move

12 years agofix typo
Felix Fietkau [Sun, 10 Jun 2012 15:32:54 +0000 (17:32 +0200)]
fix typo

12 years agoadd blobmsg_list_equal()
Felix Fietkau [Sun, 10 Jun 2012 15:31:54 +0000 (17:31 +0200)]
add blobmsg_list_equal()

12 years agoadd simple blobmsg list wrapper
Felix Fietkau [Sun, 10 Jun 2012 15:24:50 +0000 (17:24 +0200)]
add simple blobmsg list wrapper

12 years agomove the instance data structure to instance.h
Felix Fietkau [Sun, 10 Jun 2012 15:12:56 +0000 (17:12 +0200)]
move the instance data structure to instance.h

12 years agoadd blobmsg list helpers
Felix Fietkau [Sun, 10 Jun 2012 14:47:16 +0000 (16:47 +0200)]
add blobmsg list helpers