mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
iup: stop/start iup if reloaded
This commit is contained in:
parent
27173c0d40
commit
201d3e9b69
1 changed files with 8 additions and 1 deletions
|
|
@ -1,6 +1,7 @@
|
|||
#!/bin/sh /etc/rc.common
|
||||
# iup at boot
|
||||
# Copyright (C) 2007 OpenWrt.org
|
||||
|
||||
START=98
|
||||
STOP=15
|
||||
USE_PROCD=1
|
||||
|
|
@ -46,7 +47,8 @@ init_iup() {
|
|||
echo "$number $starttime * * $interval /sbin/iup > /dev/null 2>&1" >> $CRONPATH
|
||||
/etc/init.d/cron restart
|
||||
fi
|
||||
}
|
||||
}
|
||||
|
||||
start_service() {
|
||||
init_iup
|
||||
|
||||
|
|
@ -60,6 +62,11 @@ stop_service() {
|
|||
killall -9 /sbin/iup
|
||||
}
|
||||
|
||||
reload_service() {
|
||||
stop
|
||||
start
|
||||
}
|
||||
|
||||
service_triggers() {
|
||||
procd_add_reload_trigger provisioning
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue