Felix Fietkau
d288a7903d
rc.common: when reloading a service using procd, fall back to calling start instead of restart
...
This avoids unnecessary service restarts
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 41490
11 years ago
John Crispin
3a9bfa5938
base-files: add a post start hook to the procd init.d api
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 41344
11 years ago
John Crispin
44e2de03a4
base-files: calling stop_service before procd_kill.
...
Before this patch, doing `/e/c/network restart' will emit the folloing
error by `ubus network.wireless down "{}"' because netifd already quit
by that time.
Command failed: not found
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
SVN-Revision: 40906
11 years ago
Felix Fietkau
c622a37101
base-files: remove duplicate stop_service() function.
...
It was introduced in commit 2f966e8, "base-files: add a post start hook
for procd managed services".
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
SVN-Revision: 40576
11 years ago
John Crispin
950428fb1b
base-files: add a post start hook for procd managed services
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 38024
11 years ago
John Crispin
8eb56a88a4
procd: add a small script that handles config reloads until configd is ready
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 37248
12 years ago
John Crispin
06ae364c3d
base-files: run readlink on initscript name before opening services
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 37241
12 years ago
Felix Fietkau
bbc6694d98
base-files: add basic procd integration, let procd start (and restart) ubus instead of having an ubus init script
...
SVN-Revision: 34866
12 years ago
Jo-Philipp Wich
bfe966574f
base-files: enable shell tracing in initscripts when INIT_TRACE is set
...
SVN-Revision: 32340
13 years ago
Felix Fietkau
6f46704743
base-files: split service related functions off to /lib/functions/service.sh
...
SVN-Revision: 31042
13 years ago
Nicolas Thill
d0659ce37e
package/base-files: move service* functions from /etc/rc.common to /lib/functions.sh
...
SVN-Revision: 28864
13 years ago
Nicolas Thill
10a03275bf
package/base-files: /etc/rc.common: add service wrapper around start-stop-daemon
...
SVN-Revision: 28834
13 years ago
Felix Fietkau
8ff7756e82
base-files: warn when calling /etc/init.d/<script> enable and neither START nor STOP is defined
...
SVN-Revision: 27797
14 years ago
Felix Fietkau
5a351509aa
base-files: use shutdown instead of stop when the system goes down (patch by tripolar)
...
SVN-Revision: 24540
14 years ago
Nicolas Thill
b34bba25d2
base-files: fix shell syntax (prevent error messages when activating initscripts in IB)
...
SVN-Revision: 20571
15 years ago
Florian Fainelli
de3a491240
simplify action handling in rc.common ( #5558 )
...
SVN-Revision: 17012
16 years ago
Nicolas Thill
7218e6326f
make links to statup scripts in /etc/rc.d relative
...
SVN-Revision: 12659
16 years ago
Felix Fietkau
e84e3a5b03
missing optional parameters for restart and boot functions
...
Add missing optional parameters in remaining rc functions.
It fixes my previous implementation of parametrized rc functions [8106],
ticket #3063 , thanks argovela-at-yahoo-com for reporting.
Signed-off-by: Lubos Stanek (lubek) <lubek@lubek.name>
SVN-Revision: 10245
17 years ago
Felix Fietkau
6330c58b58
add patch from #2111
...
SVN-Revision: 8106
18 years ago
Mike Baker
5eb30e636d
fix typo
...
SVN-Revision: 7170
18 years ago
Mike Baker
bef40307bb
START/STOP values must be specified in the init script
...
SVN-Revision: 7164
18 years ago
Mike Baker
291420a8f3
add K* scripts to be run at shutdown
...
SVN-Revision: 7163
18 years ago
Felix Fietkau
4bef6e13c2
add a workaround for self-killing init scripts on restart ( #1023 )
...
SVN-Revision: 5876
18 years ago
Felix Fietkau
9a5798e5f5
add a check to see if an init script is enabled
...
SVN-Revision: 5727
18 years ago
Felix Fietkau
59a06c71cb
rename default/ to files/
...
SVN-Revision: 5622
18 years ago
Felix Fietkau
1dc538c39a
fix for multiple extra commands in init scripts using rc.common
...
SVN-Revision: 5488
18 years ago
Felix Fietkau
233fbc4726
fix typo
...
SVN-Revision: 5131
18 years ago
Felix Fietkau
8612d33691
init script cleanup, use /etc/rc.d/ for enabled scripts, /etc/init.d/<pkgname> (enable|disable) manages symlinks
...
SVN-Revision: 5128
18 years ago