| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Signed-off-by: Roman Yeryomin <roman@advem.lv>
Signed-off-by: Andrejs Hanins <ahanins@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In current state, if there is START but no STOP, enbale()
will return 1 (failure), which is wrong.
Moreover there is no need to check for START/STOP twice.
Instead, add err variable to save success state and
and return it's value.
Also eliminate the need to disable() by using 'ln -sf',
which will first delete the old symlink if one exists.
Changes from v1:
- fixed description
Signed-off-by: Roman Yeryomin <roman@advem.lv>
|
|
|
|
|
|
| |
Use the same approach than the service_triggers for the service_data.
Signed-off-by: Pierre Lebleu <pme.lebleu@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Bug introduced with 6713694.
I did not count on procd handling reload as mentioned
in this doc:
https://wiki.openwrt.org/inbox/procd-init-scripts
```
procd_set_param file /var/etc/your_service.conf # /etc/init.d/your_service reload will restart the daemon if these files have changed
procd_set_param netdev dev # likewise, except if dev's ifindex changes.
procd_set_param data name=value ... # likewise, except if this data changes.
```
The service would be restarted regardless of any of those params.
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This was also working before, with a slightly
different semantic.
[ Original semantic ]
If no reload hooks was implemented, the default one would
kick in, it would return fail, and restart would happen.
This would happen also in the case where a reload hook
would be implemented, it would fail, and it would restart
the service.
[ New semantic ]
The default reload hook calls restart.
Services can implement their own reload.
If reload fails, then the '/etc/init.d/<service> reload'
would return a non-zero code, and the caller can choose
a way to handle this.
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
|
|
|
|
| |
Signed-off-by: Pierre Lebleu <pierre.lebleu@technicolor.com>
|
|
|
|
|
|
| |
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 45009
|
|
|
|
|
|
|
|
|
|
| |
instead of restart
This avoids unnecessary service restarts
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 41490
|
|
|
|
|
|
| |
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 41344
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 38024
|
|
|
|
|
|
| |
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 37248
|
|
|
|
|
|
| |
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 37241
|
|
|
|
|
|
| |
instead of having an ubus init script
SVN-Revision: 34866
|
|
|
|
| |
SVN-Revision: 32340
|
|
|
|
| |
SVN-Revision: 31042
|
|
|
|
|
|
| |
/lib/functions.sh
SVN-Revision: 28864
|
|
|
|
| |
SVN-Revision: 28834
|
|
|
|
|
|
| |
nor STOP is defined
SVN-Revision: 27797
|
|
|
|
|
|
| |
tripolar)
SVN-Revision: 24540
|
|
|
|
|
|
| |
initscripts in IB)
SVN-Revision: 20571
|
|
|
|
| |
SVN-Revision: 17012
|
|
|
|
| |
SVN-Revision: 12659
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
SVN-Revision: 8106
|
|
|
|
| |
SVN-Revision: 7170
|
|
|
|
| |
SVN-Revision: 7164
|
|
|
|
| |
SVN-Revision: 7163
|
|
|
|
| |
SVN-Revision: 5876
|
|
|
|
| |
SVN-Revision: 5727
|
|
SVN-Revision: 5622
|