Skip to content
Snippets Groups Projects
Commit d445cb77 authored by Jan-Philipp Litza's avatar Jan-Philipp Litza
Browse files

gluon-radvd: Use procd in init script

The main advantage is that procd is capable of logging stderr to logd,
making errors easier to debug.
parent f3cb6d7b
No related branches found
No related tags found
No related merge requests found
#!/bin/sh /etc/rc.common #!/bin/sh /etc/rc.common
USE_PROCD=1
START=50 START=50
SERVICE_WRITE_PID=1 start_service() {
SERVICE_DAEMONIZE=1
start() {
[ -x /lib/gluon/radvd/arguments ] && { [ -x /lib/gluon/radvd/arguments ] && {
service_start /usr/sbin/uradvd $(/lib/gluon/radvd/arguments) procd_open_instance
procd_param command /usr/sbin/uradvd $(/lib/gluon/radvd/arguments)
procd_set_param respawn ${respawn_threshold:-3600} ${respawn_timeout:-5} ${respawn_retry:-5}
procd_set_param netdev br-client
procd_set_param stderr 1
procd_close_instance
} }
} }
stop() {
service_stop /usr/sbin/uradvd
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment